Partager via


Méthode EdmxWriter.TryWriteEdmx

Génère un artefact EDMX pour le XmlWriter fourni.

Espace de noms :  Microsoft.Data.Edm.Csdl
Assembly :  Microsoft.Data.Edm (en Microsoft.Data.Edm.dll)

Syntaxe

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

Paramètres

Valeur de retour

Type : System.Boolean
true si la sérialisation a réussi ; sinon, false.

Voir aussi

Référence

EdmxWriter Classe

Espace de noms Microsoft.Data.Edm.Csdl