Share via


EdmxWriter.TryWriteEdmx Method

Outputs an EDMX artifact to the provided XmlWriter.

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

Syntax

'Declaration
Public Shared Function TryWriteEdmx ( _
    model As IEdmModel, _
    writer As XmlWriter, _
    target As EdmxTarget, _
    <OutAttribute> ByRef errors As IEnumerable(Of EdmError) _
) As Boolean
'Usage
Dim model As IEdmModel 
Dim writer As XmlWriter 
Dim target As EdmxTarget 
Dim errors As IEnumerable(Of EdmError)
Dim returnValue As Boolean 

returnValue = EdmxWriter.TryWriteEdmx(model, _
    writer, target, errors)
public static bool TryWriteEdmx(
    IEdmModel model,
    XmlWriter writer,
    EdmxTarget target,
    out IEnumerable<EdmError> errors
)
public:
static bool TryWriteEdmx(
    IEdmModel^ model, 
    XmlWriter^ writer, 
    EdmxTarget target, 
    [OutAttribute] IEnumerable<EdmError^>^% errors
)
static member TryWriteEdmx : 
        model:IEdmModel * 
        writer:XmlWriter * 
        target:EdmxTarget * 
        errors:IEnumerable<EdmError> byref -> bool
public static function TryWriteEdmx(
    model : IEdmModel, 
    writer : XmlWriter, 
    target : EdmxTarget, 
    errors : IEnumerable<EdmError>
) : boolean

Parameters

Return Value

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

See Also

Reference

EdmxWriter Class

Microsoft.Data.Edm.Csdl Namespace