CsdlWriter.TryWriteCsdl Method (IEdmModel, Func<String, XmlWriter>, IEnumerable<EdmError>%)
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(Of String, XmlWriter), _
<OutAttribute> ByRef errors As IEnumerable(Of EdmError) _
) As Boolean
'Usage
Dim model As IEdmModel
Dim writerProvider As Func(Of String, XmlWriter)
Dim errors As IEnumerable(Of EdmError)
Dim returnValue As Boolean
returnValue = model.TryWriteCsdl(writerProvider, _
errors)
public static bool TryWriteCsdl(
this IEdmModel model,
Func<string, XmlWriter> writerProvider,
out IEnumerable<EdmError> errors
)
[ExtensionAttribute]
public:
static bool TryWriteCsdl(
IEdmModel^ model,
Func<String^, XmlWriter^>^ writerProvider,
[OutAttribute] IEnumerable<EdmError^>^% errors
)
static member TryWriteCsdl :
model:IEdmModel *
writerProvider:Func<string, XmlWriter> *
errors:IEnumerable<EdmError> byref -> bool
public static function TryWriteCsdl(
model : IEdmModel,
writerProvider : Func<String, XmlWriter>,
errors : IEnumerable<EdmError>
) : boolean
Parameters
- model
Type: Microsoft.Data.Edm.IEdmModel
- writerProvider
Type: System.Func<String, XmlWriter>
- errors
Type: System.Collections.Generic.IEnumerable<EdmError>%
Return Value
Type: System.Boolean
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).