ODataUrlValidationRule<T> Constructors
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.
Overloads
ODataUrlValidationRule<T>(String, Action<ODataUrlValidationContext,T>) |
Constructs an instance of an ODataValdiationRule of a particular type. |
ODataUrlValidationRule<T>(String, Action<ODataUrlValidationContext,T>, Boolean) |
Constructs an instance of an ODataValdiationRule of a particular type. |
ODataUrlValidationRule<T>(String, Action<ODataUrlValidationContext,T>)
Constructs an instance of an ODataValdiationRule of a particular type.
public ODataUrlValidationRule (string ruleName, Action<Microsoft.OData.UriParser.Validation.ODataUrlValidationContext,T> validateMethod);
new Microsoft.OData.UriParser.Validation.ODataUrlValidationRule<'T (requires 'T : null)> : string * Action<Microsoft.OData.UriParser.Validation.ODataUrlValidationContext, 'T (requires 'T : null)> -> Microsoft.OData.UriParser.Validation.ODataUrlValidationRule<'T (requires 'T : null)>
Public Sub New (ruleName As String, validateMethod As Action(Of ODataUrlValidationContext, T))
Parameters
- ruleName
- String
The rule name.
- validateMethod
- Action<ODataUrlValidationContext,T>
The Action that validates an instance of the specified type.
Applies to
ODataUrlValidationRule<T>(String, Action<ODataUrlValidationContext,T>, Boolean)
Constructs an instance of an ODataValdiationRule of a particular type.
public ODataUrlValidationRule (string ruleName, Action<Microsoft.OData.UriParser.Validation.ODataUrlValidationContext,T> validateMethod, bool includeImpliedProperties);
new Microsoft.OData.UriParser.Validation.ODataUrlValidationRule<'T (requires 'T : null)> : string * Action<Microsoft.OData.UriParser.Validation.ODataUrlValidationContext, 'T (requires 'T : null)> * bool -> Microsoft.OData.UriParser.Validation.ODataUrlValidationRule<'T (requires 'T : null)>
Public Sub New (ruleName As String, validateMethod As Action(Of ODataUrlValidationContext, T), includeImpliedProperties As Boolean)
Parameters
- ruleName
- String
The rule name.
- validateMethod
- Action<ODataUrlValidationContext,T>
The Action that validates an instance of the specified type.
- includeImpliedProperties
- Boolean
Whether the rule should include implicitly selected properties.