Jaa


ValidationRule<TItem>(Action<ValidationContext,TItem>) Constructor

Definition

Initializes a new instance of the ValidationRule class.

public ValidationRule (Action<Microsoft.OData.Edm.Validation.ValidationContext,TItem> validate);
new Microsoft.OData.Edm.Validation.ValidationRule<'Item (requires 'Item :> Microsoft.OData.Edm.IEdmElement)> : Action<Microsoft.OData.Edm.Validation.ValidationContext, 'Item (requires 'Item :> Microsoft.OData.Edm.IEdmElement)> -> Microsoft.OData.Edm.Validation.ValidationRule<'Item (requires 'Item :> Microsoft.OData.Edm.IEdmElement)>
Public Sub New (validate As Action(Of ValidationContext, TItem))

Parameters

validate
Action<ValidationContext,TItem>

Action to perform the validation.

Applies to