CsdlReader::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, 
	[OutAttribute] IEdmModel^% model, 
	[OutAttribute] IEnumerable<EdmError^>^% errors
)

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.
Show: