This topic has not yet been rated - Rate this topic

TryParse Method (IEnumerable(XmlReader), IEnumerable(IEdmModel), IEdmModel, IEnumerable(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 static bool TryParse(
	IEnumerable<XmlReader> readers,
	IEnumerable<IEdmModel> references,
	out IEdmModel model,
	out IEnumerable<EdmError> errors
)

Parameters

readers
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'XmlReader>)>)>
The collection of XmlReaders containing the CSDL artifacts.
references
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'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<(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)
© 2013 Microsoft. All rights reserved.