Validate Method

Implements custom validation for instances of GetPriceRequest. This is automatically called by the DataAnnotations framework when this request is executed by the service.

Namespace:  Microsoft.Dynamics.Commerce.Runtime.Services.Messages
Assembly:  Microsoft.Dynamics.Commerce.Runtime.Services.Messages (in Microsoft.Dynamics.Commerce.Runtime.Services.Messages.dll)

public override IEnumerable<ValidationResult> Validate(
	ValidationContext validationContext
)

Parameters

validationContext
Type: ValidationContext

Return Value

Type: System.Collections.Generic.IEnumerable<ValidationResult>
Collection of validation errors. Empty if validated successfully.

Implements

IValidatableObjectValidate(ValidationContext)

Community Additions

Show: