TryParse Method (IEnumerable(XmlReader), IEnumerable(IEdmModel), IEdmModel, IEnumerable(EdmError))

CsdlReader.TryParse Method (IEnumerable(XmlReader), IEnumerable(IEdmModel), IEdmModel, IEnumerable(EdmError))

WCF Data Services 5.0

Returns an IEdmModel for the given CSDL artifacts.

Namespace:  Microsoft.Data.Edm.Csdl
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

static member TryParse : 
        readers:IEnumerable<XmlReader> * 
        references:IEnumerable<IEdmModel> * 
        model:IEdmModel byref * 
        errors:IEnumerable<EdmError> byref -> bool

Parameters

readers
Type: System.Collections.Generic.IEnumerable(XmlReader)
The collection of XmlReaders containing the CSDL artifacts.
references
Type: System.Collections.Generic.IEnumerable(IEdmModel)
The models to be references by the created model.
model
Type: Microsoft.Data.Edm.IEdmModel
The model generated by parsing.
errors
Type: System.Collections.Generic.IEnumerable(EdmError)
The errors reported while parsing.

Return Value

Type: System.Boolean
true if the parse operation was successful; otherwise, false.
Show:
© 2016 Microsoft