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

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 http://msdn.microsoft.com/en-us/library/bb384936(v=vs.103).aspx or http://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).aspx.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.