Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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), _
references As IEnumerable(Of IEdmModel), _
<OutAttribute> ByRef model As IEdmModel, _
<OutAttribute> ByRef errors As IEnumerable(Of EdmError) _
) As Boolean
'Usage
Dim readers As IEnumerable(Of XmlReader)
Dim references As IEnumerable(Of IEdmModel)
Dim model As IEdmModel
Dim errors As IEnumerable(Of EdmError)
Dim returnValue As Boolean
returnValue = CsdlReader.TryParse(readers, _
references, model, errors)
public static bool TryParse(
IEnumerable<XmlReader> readers,
IEnumerable<IEdmModel> references,
out IEdmModel model,
out IEnumerable<EdmError> errors
)
public:
static bool TryParse(
IEnumerable<XmlReader^>^ readers,
IEnumerable<IEdmModel^>^ references,
[OutAttribute] IEdmModel^% model,
[OutAttribute] IEnumerable<EdmError^>^% errors
)
static member TryParse :
readers:IEnumerable<XmlReader> *
references:IEnumerable<IEdmModel> *
model:IEdmModel byref *
errors:IEnumerable<EdmError> byref -> bool
public static function TryParse(
readers : IEnumerable<XmlReader>,
references : IEnumerable<IEdmModel>,
model : IEdmModel,
errors : IEnumerable<EdmError>
) : boolean
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.