CsdlReader.TryParse Method (IEnumerable<XmlReader>, IEdmModel, IEdmModel%, IEnumerable<EdmError>%)
Returns an IEdmModel for the given CSDL artifacts.
Namespace: Microsoft.Data.Edm.Csdl
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
Public Shared Function TryParse ( _
readers As IEnumerable(Of XmlReader), _
reference As IEdmModel, _
<OutAttribute> ByRef model As IEdmModel, _
<OutAttribute> ByRef errors As IEnumerable(Of EdmError) _
) As Boolean
'Usage
Dim readers As IEnumerable(Of XmlReader)
Dim reference As IEdmModel
Dim model As IEdmModel
Dim errors As IEnumerable(Of EdmError)
Dim returnValue As Boolean
returnValue = CsdlReader.TryParse(readers, _
reference, model, errors)
public static bool TryParse(
IEnumerable<XmlReader> readers,
IEdmModel reference,
out IEdmModel model,
out IEnumerable<EdmError> errors
)
public:
static bool TryParse(
IEnumerable<XmlReader^>^ readers,
IEdmModel^ reference,
[OutAttribute] IEdmModel^% model,
[OutAttribute] IEnumerable<EdmError^>^% errors
)
static member TryParse :
readers:IEnumerable<XmlReader> *
reference:IEdmModel *
model:IEdmModel byref *
errors:IEnumerable<EdmError> byref -> bool
public static function TryParse(
readers : IEnumerable<XmlReader>,
reference : IEdmModel,
model : IEdmModel,
errors : IEnumerable<EdmError>
) : boolean
Parameters
- readers
Type: System.Collections.Generic.IEnumerable<XmlReader>
The collection of XmlReaders containing the CSDL artifacts.
- reference
Type: Microsoft.Data.Edm.IEdmModel
The model 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.