Condividi tramite


EndpointAddress.WriteContentsTo Metodo

Definizione

Salva tutti i nodi figlio del nodo nel writer XML specificato.

Overload

WriteContentsTo(AddressingVersion, XmlDictionaryWriter)

Salva tutti i nodi figlio del nodo nel writer di dizionario XML specificato.

WriteContentsTo(AddressingVersion, XmlWriter)

Salva tutti i nodi figlio del nodo nel writer XML specificato.

WriteContentsTo(AddressingVersion, XmlDictionaryWriter)

Origine:
EndpointAddress.cs
Origine:
EndpointAddress.cs
Origine:
EndpointAddress.cs

Salva tutti i nodi figlio del nodo nel writer di dizionario XML specificato.

public:
 void WriteContentsTo(System::ServiceModel::Channels::AddressingVersion ^ addressingVersion, System::Xml::XmlDictionaryWriter ^ writer);
public void WriteContentsTo (System.ServiceModel.Channels.AddressingVersion addressingVersion, System.Xml.XmlDictionaryWriter writer);
member this.WriteContentsTo : System.ServiceModel.Channels.AddressingVersion * System.Xml.XmlDictionaryWriter -> unit
Public Sub WriteContentsTo (addressingVersion As AddressingVersion, writer As XmlDictionaryWriter)

Parametri

addressingVersion
AddressingVersion

Oggetto AddressingVersion dell'indirizzo endpoint corrente.

writer
XmlDictionaryWriter

Oggetto XmlDictionaryWriter in cui viene salvato l'indirizzo endpoint.

Eccezioni

writer o addressingVersion è null.

Esempio

XmlWriter writer = XmlWriter.Create("addressdata.xml");
XmlDictionaryWriter dictWriter = XmlDictionaryWriter.CreateDictionaryWriter(writer);
endpointAddress.WriteContentsTo(
                AddressingVersion.WSAddressing10,
                dictWriter);
dictWriter.Close();

Si applica a

WriteContentsTo(AddressingVersion, XmlWriter)

Origine:
EndpointAddress.cs
Origine:
EndpointAddress.cs
Origine:
EndpointAddress.cs

Salva tutti i nodi figlio del nodo nel writer XML specificato.

public:
 void WriteContentsTo(System::ServiceModel::Channels::AddressingVersion ^ addressingVersion, System::Xml::XmlWriter ^ writer);
public void WriteContentsTo (System.ServiceModel.Channels.AddressingVersion addressingVersion, System.Xml.XmlWriter writer);
member this.WriteContentsTo : System.ServiceModel.Channels.AddressingVersion * System.Xml.XmlWriter -> unit
Public Sub WriteContentsTo (addressingVersion As AddressingVersion, writer As XmlWriter)

Parametri

addressingVersion
AddressingVersion

Oggetto AddressingVersion dell'indirizzo endpoint corrente.

writer
XmlWriter

Oggetto XmlWriter in cui viene salvato l'indirizzo endpoint.

Eccezioni

writer o addressingVersion è null.

Esempio

XmlWriter writer = XmlWriter.Create("addressdata.xml");
endpointAddress.WriteContentsTo(
                AddressingVersion.WSAddressing10,
                writer);
writer.Close();

Si applica a