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