Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

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
)

Parameters

model
Type: Microsoft.Data.Edm..::..IEdmModel
The model to be written.
writerProvider
Type: System..::..Func<(Of <(<'T, TResult>)>)>
The provider of XmlWriter.
errors
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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103).aspx or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).aspx.
Show:
© 2015 Microsoft