Freigeben über


EndpointAddress.WriteContentsTo Methode

Definition

Speichert alle untergeordneten Knoten des Knotens im angegebenen XML-Writer.

Überlädt

WriteContentsTo(AddressingVersion, XmlDictionaryWriter)

Speichert alle untergeordneten Knoten des Knotens im angegebenen XML-Wörterbuch-Writer.

WriteContentsTo(AddressingVersion, XmlWriter)

Speichert alle untergeordneten Knoten des Knotens im angegebenen XML-Writer.

WriteContentsTo(AddressingVersion, XmlDictionaryWriter)

Speichert alle untergeordneten Knoten des Knotens im angegebenen XML-Wörterbuch-Writer.

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)

Parameter

addressingVersion
AddressingVersion

Die AddressingVersion der aktuellen Endpunktadresse.

writer
XmlDictionaryWriter

Der XmlDictionaryWriter, in dem die Endpunktadresse gespeichert wird.

Ausnahmen

writer oder addressingVersion ist null.

Beispiele

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

Gilt für

WriteContentsTo(AddressingVersion, XmlWriter)

Speichert alle untergeordneten Knoten des Knotens im angegebenen XML-Writer.

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)

Parameter

addressingVersion
AddressingVersion

Die AddressingVersion der aktuellen Endpunktadresse.

writer
XmlWriter

Der XmlWriter, in dem die Endpunktadresse gespeichert wird.

Ausnahmen

writer oder addressingVersion ist null.

Beispiele

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

Gilt für