Condividi tramite


Metodo EdmxWriter.TryWriteEdmx

Restituisce un elemento EDMX all'elemento XmlWriter fornito.

Spazio dei nomi  Microsoft.Data.Edm.Csdl
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

Sintassi

'Dichiarazione
Public Shared Function TryWriteEdmx ( _
    model As IEdmModel, _
    writer As XmlWriter, _
    target As EdmxTarget, _
    <OutAttribute> ByRef errors As IEnumerable(Of EdmError) _
) As Boolean
'Utilizzo
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

Parametri

  • writer
    Tipo: System.Xml.XmlWriter
    Elemento XmlWriter in cui verrà scritto il codice EDMX generato.

Valore restituito

Tipo: System.Boolean
true se la serializzazione ha avuto esito positivo; in caso contrario, false.

Vedere anche

Riferimento

EdmxWriter Classe

Spazio dei nomi Microsoft.Data.Edm.Csdl