SchemaValidator.TryValidate 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.
Validates that data
is valid according to schemaDefinition
.
public abstract bool TryValidate(object data, Type dataType, string schemaDefinition, out System.Collections.Generic.IEnumerable<Exception> validationErrors);
abstract member TryValidate : obj * Type * string * seq -> bool
Public MustOverride Function TryValidate (data As Object, dataType As Type, schemaDefinition As String, ByRef validationErrors As IEnumerable(Of Exception)) As Boolean
Parameters
- data
- Object
The data to validate.
- dataType
- Type
The type of data to validate.
- schemaDefinition
- String
The schema definition to validate against.
- validationErrors
- IEnumerable<Exception>
When this method returns, contains the validation errors if data
was invalid according to
the schemaDefinition
.
Returns
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure SDK for .NET