TryWriteCsdl Method (IEdmModel, Func, Boolean)
Outputs a CSDL artifact with the specified writer provider.
Namespace: Microsoft.Data.Edm.Csdl
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function TryWriteCsdl ( _
model As IEdmModel, _
writerProvider As Func, _
<OutAttribute> errors As Boolean _
) As Boolean
'Usage
Dim model As IEdmModel
Dim writerProvider As Func
Dim errors As Boolean
Dim returnValue As Boolean
returnValue = model.TryWriteCsdl(writerProvider, _
errors)
public static bool TryWriteCsdl(
this IEdmModel model,
Func writerProvider,
bool errors
)
[ExtensionAttribute]
public:
static bool TryWriteCsdl(
IEdmModel^ model,
Func^ writerProvider,
[OutAttribute] bool errors
)
static member TryWriteCsdl :
model:IEdmModel *
writerProvider:Func *
errors:bool byref -> bool
public static function TryWriteCsdl(
model : IEdmModel,
writerProvider : Func,
errors : boolean
) : boolean
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) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).