EdmValidator.Validate Method
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
Validate(IEdmModel, IEnumerable<EdmError>) |
Validate the IEdmModel and all of its properties using the current version of the model. If the model has no version, EdmVersionDefault is used. |
Validate(IEdmModel, ValidationRuleSet, IEnumerable<EdmError>) |
Validate the IEdmModel and all of its properties given certain version. |
Validate(IEdmModel, Version, IEnumerable<EdmError>) |
Validate the IEdmModel and all of its properties given certain version. |
Validate(IEdmModel, IEnumerable<EdmError>)
Validate the IEdmModel and all of its properties using the current version of the model. If the model has no version, EdmVersionDefault is used.
public static bool Validate (this Microsoft.OData.Edm.IEdmModel root, out System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.Validation.EdmError> errors);
static member Validate : Microsoft.OData.Edm.IEdmModel * seq -> bool
<Extension()>
Public Function Validate (root As IEdmModel, ByRef errors As IEnumerable(Of EdmError)) As Boolean
Parameters
- root
- IEdmModel
The root of the model to be validated.
- errors
- IEnumerable<EdmError>
Errors encountered while validating the model.
Returns
True if model is valid, otherwise false.
Applies to
Validate(IEdmModel, ValidationRuleSet, IEnumerable<EdmError>)
Validate the IEdmModel and all of its properties given certain version.
public static bool Validate (this Microsoft.OData.Edm.IEdmModel root, Microsoft.OData.Edm.Validation.ValidationRuleSet ruleSet, out System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.Validation.EdmError> errors);
static member Validate : Microsoft.OData.Edm.IEdmModel * Microsoft.OData.Edm.Validation.ValidationRuleSet * seq -> bool
<Extension()>
Public Function Validate (root As IEdmModel, ruleSet As ValidationRuleSet, ByRef errors As IEnumerable(Of EdmError)) As Boolean
Parameters
- root
- IEdmModel
The root of the model to be validated.
- ruleSet
- ValidationRuleSet
Custom rule set to validate against.
- errors
- IEnumerable<EdmError>
Errors encountered while validating the model.
Returns
True if model is valid, otherwise false.
Applies to
Validate(IEdmModel, Version, IEnumerable<EdmError>)
Validate the IEdmModel and all of its properties given certain version.
public static bool Validate (this Microsoft.OData.Edm.IEdmModel root, Version version, out System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.Validation.EdmError> errors);
static member Validate : Microsoft.OData.Edm.IEdmModel * Version * seq -> bool
<Extension()>
Public Function Validate (root As IEdmModel, version As Version, ByRef errors As IEnumerable(Of EdmError)) As Boolean
Parameters
- root
- IEdmModel
The root of the model to be validated.
- version
- Version
Version of Edm to validate against.
- errors
- IEnumerable<EdmError>
Errors encountered while validating the model.
Returns
True if model is valid, otherwise false.