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
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.