Sdílet prostřednictvím


EndpointAddress.WriteContentsTo Metoda

Definice

Uloží všechny podřízené uzly uzlu do zadaného zapisovače XML.

Přetížení

WriteContentsTo(AddressingVersion, XmlDictionaryWriter)

Uloží všechny podřízené uzly uzlu do zadaného zapisovače slovníku XML.

WriteContentsTo(AddressingVersion, XmlWriter)

Uloží všechny podřízené uzly uzlu do zadaného zapisovače XML.

WriteContentsTo(AddressingVersion, XmlDictionaryWriter)

Uloží všechny podřízené uzly uzlu do zadaného zapisovače slovníku XML.

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)

Parametry

addressingVersion
AddressingVersion

Adresa AddressingVersion aktuálního koncového bodu.

writer
XmlDictionaryWriter

Adresa XmlDictionaryWriter koncového bodu se uloží.

Výjimky

writer nebo addressingVersion je null.

Příklady

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

Platí pro

WriteContentsTo(AddressingVersion, XmlWriter)

Uloží všechny podřízené uzly uzlu do zadaného zapisovače XML.

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)

Parametry

addressingVersion
AddressingVersion

Adresa AddressingVersion aktuálního koncového bodu.

writer
XmlWriter

Adresa XmlWriter koncového bodu se uloží.

Výjimky

writer nebo addressingVersion je null.

Příklady

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

Platí pro