Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CsdlReader.TryParse Method (IEnumerable(Of XmlReader), IEnumerable(Of IEdmModel), IEdmModel, IEnumerable(Of 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)
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
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)


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

Return Value

Type: System.Boolean
true if the parse operation was successful; otherwise, false.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.