Share via


SchemaReader.TryParse Method

Definition

Overloads

TryParse(IEnumerable<XmlReader>, IEdmModel, IEnumerable<EdmError>)

Returns an IEdmModel for the given Schema artifacts.

TryParse(IEnumerable<XmlReader>, IEdmModel, IEdmModel, IEnumerable<EdmError>)

Returns an IEdmModel for the given Schema artifacts.

TryParse(IEnumerable<XmlReader>, IEnumerable<IEdmModel>, IEdmModel, IEnumerable<EdmError>)

Returns an IEdmModel for the given Schema artifacts.

TryParse(IEnumerable<XmlReader>, IEnumerable<IEdmModel>, Boolean, IEdmModel, IEnumerable<EdmError>)

Returns an IEdmModel for the given Schema artifacts.

TryParse(IEnumerable<XmlReader>, IEdmModel, IEnumerable<EdmError>)

Returns an IEdmModel for the given Schema artifacts.

public static bool TryParse (System.Collections.Generic.IEnumerable<System.Xml.XmlReader> readers, out Microsoft.OData.Edm.IEdmModel model, out System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.Validation.EdmError> errors);
static member TryParse : seq<System.Xml.XmlReader> * IEdmModel * seq -> bool
Public Shared Function TryParse (readers As IEnumerable(Of XmlReader), ByRef model As IEdmModel, ByRef errors As IEnumerable(Of EdmError)) As Boolean

Parameters

readers
IEnumerable<XmlReader>

Collection of XmlReaders containing the Schema artifacts.

model
IEdmModel

The model generated by parsing.

errors
IEnumerable<EdmError>

Errors reported while parsing.

Returns

Success of the parse operation.

Applies to

TryParse(IEnumerable<XmlReader>, IEdmModel, IEdmModel, IEnumerable<EdmError>)

Returns an IEdmModel for the given Schema artifacts.

public static bool TryParse (System.Collections.Generic.IEnumerable<System.Xml.XmlReader> readers, Microsoft.OData.Edm.IEdmModel reference, out Microsoft.OData.Edm.IEdmModel model, out System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.Validation.EdmError> errors);
static member TryParse : seq<System.Xml.XmlReader> * Microsoft.OData.Edm.IEdmModel * IEdmModel * seq -> bool
Public Shared Function TryParse (readers As IEnumerable(Of XmlReader), reference As IEdmModel, ByRef model As IEdmModel, ByRef errors As IEnumerable(Of EdmError)) As Boolean

Parameters

readers
IEnumerable<XmlReader>

Collection of XmlReaders containing the Schema artifacts.

reference
IEdmModel

Model to be references by the created model.

model
IEdmModel

The model generated by parsing.

errors
IEnumerable<EdmError>

Errors reported while parsing.

Returns

Success of the parse operation.

Applies to

TryParse(IEnumerable<XmlReader>, IEnumerable<IEdmModel>, IEdmModel, IEnumerable<EdmError>)

Returns an IEdmModel for the given Schema artifacts.

public static bool TryParse (System.Collections.Generic.IEnumerable<System.Xml.XmlReader> readers, System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.IEdmModel> references, out Microsoft.OData.Edm.IEdmModel model, out System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.Validation.EdmError> errors);
static member TryParse : seq<System.Xml.XmlReader> * seq<Microsoft.OData.Edm.IEdmModel> * IEdmModel * seq -> bool
Public Shared Function TryParse (readers As IEnumerable(Of XmlReader), references As IEnumerable(Of IEdmModel), ByRef model As IEdmModel, ByRef errors As IEnumerable(Of EdmError)) As Boolean

Parameters

readers
IEnumerable<XmlReader>

Collection of XmlReaders containing the Schema artifacts.

references
IEnumerable<IEdmModel>

Models to be references by the created model.

model
IEdmModel

The model generated by parsing.

errors
IEnumerable<EdmError>

Errors reported while parsing.

Returns

Success of the parse operation.

Applies to

TryParse(IEnumerable<XmlReader>, IEnumerable<IEdmModel>, Boolean, IEdmModel, IEnumerable<EdmError>)

Returns an IEdmModel for the given Schema artifacts.

public static bool TryParse (System.Collections.Generic.IEnumerable<System.Xml.XmlReader> readers, System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.IEdmModel> references, bool includeDefaultVocabularies, out Microsoft.OData.Edm.IEdmModel model, out System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.Validation.EdmError> errors);
static member TryParse : seq<System.Xml.XmlReader> * seq<Microsoft.OData.Edm.IEdmModel> * bool * IEdmModel * seq -> bool
Public Shared Function TryParse (readers As IEnumerable(Of XmlReader), references As IEnumerable(Of IEdmModel), includeDefaultVocabularies As Boolean, ByRef model As IEdmModel, ByRef errors As IEnumerable(Of EdmError)) As Boolean

Parameters

readers
IEnumerable<XmlReader>

Collection of XmlReaders containing the Schema artifacts.

references
IEnumerable<IEdmModel>

Models to be references by the created model.

includeDefaultVocabularies
Boolean

A value indicating enable/disable the built-in vocabulary supporting.

model
IEdmModel

The model generated by parsing.

errors
IEnumerable<EdmError>

Errors reported while parsing.

Returns

Success of the parse operation.

Applies to