TryWriteCsdl Method (IEdmModel, Func, Boolean)

WCF Data Services 5.0

Outputs a CSDL artifact with the specified writer provider.

Namespace:  Microsoft.Data.Edm.Csdl
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

public static bool TryWriteCsdl(
	this IEdmModel model,
	Func writerProvider,
	bool errors


Type: Microsoft.Data.Edm..::..IEdmModel
The model to be written.
Type: System..::..Func<(Of <(<'T, TResult>)>)>
The provider of XmlWriter.
Type: System..::..Boolean
The errors that prevented successful serialization or no errors if serialization was successful.

Return Value

Type: System..::..Boolean
true if serialization was successful; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see or