EndpointAddress.WriteContentsTo Método

Definição

Salva todos os nós filho do nó no gravador de XML especificado.

Sobrecargas

WriteContentsTo(AddressingVersion, XmlDictionaryWriter)

Salva todos os nós filho do nó no gravador de dicionário XML especificado.

WriteContentsTo(AddressingVersion, XmlWriter)

Salva todos os nós filho do nó no gravador de XML especificado.

WriteContentsTo(AddressingVersion, XmlDictionaryWriter)

Salva todos os nós filho do nó no gravador de dicionário XML especificado.

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)

Parâmetros

addressingVersion
AddressingVersion

O AddressingVersion do endereço do ponto de extremidade atual.

writer
XmlDictionaryWriter

O XmlDictionaryWriter no qual o endereço do ponto de extremidade é salvo.

Exceções

writer ou addressingVersion é null.

Exemplos

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

Aplica-se a

WriteContentsTo(AddressingVersion, XmlWriter)

Salva todos os nós filho do nó no gravador de XML especificado.

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)

Parâmetros

addressingVersion
AddressingVersion

O AddressingVersion do endereço do ponto de extremidade atual.

writer
XmlWriter

O XmlWriter no qual o endereço do ponto de extremidade é salvo.

Exceções

writer ou addressingVersion é null.

Exemplos

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

Aplica-se a