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 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, _
reference As IEdmModel, _
<OutAttribute> ByRef model As IEdmModel, _
<OutAttribute> ByRef errors As IEnumerable(Of EdmError) _
) As Boolean
'Usage
Dim reader As XmlReader
Dim reference As IEdmModel
Dim model As IEdmModel
Dim errors As IEnumerable(Of EdmError)
Dim returnValue As Boolean
returnValue = EdmxReader.TryParse(reader, _
reference, model, errors)
public static bool TryParse(
XmlReader reader,
IEdmModel reference,
out IEdmModel model,
out IEnumerable<EdmError> errors
)
public:
static bool TryParse(
XmlReader^ reader,
IEdmModel^ reference,
[OutAttribute] IEdmModel^% model,
[OutAttribute] IEnumerable<EdmError^>^% errors
)
static member TryParse :
reader:XmlReader *
reference:IEdmModel *
model:IEdmModel byref *
errors:IEnumerable<EdmError> byref -> bool
public static function TryParse(
reader : XmlReader,
reference : IEdmModel,
model : IEdmModel,
errors : IEnumerable<EdmError>
) : boolean
Parameters
- reader
Type: System.Xml.XmlReader
The XmlReader containing the EDMX artifact.
- reference
Type: Microsoft.Data.Edm.IEdmModel
The model to be referenced 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.