ValidationRule<TItem>(Action<ValidationContext,TItem>) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.