Freigeben über


EndpointAddress.WriteTo Methode

Definition

Speichert die aktuelle Endpunktadresse einer angegebenen Version in einen XML-Writer oder einen XML-Wörterbuch-Writer.

Überlädt

WriteTo(AddressingVersion, XmlDictionaryWriter)

Speichert die aktuelle Endpunktadresse einer angegebenen Version in einen angegebenen XML-Wörterbuch-Writer.

WriteTo(AddressingVersion, XmlWriter)

Speichert die aktuelle Endpunktadresse einer angegebenen Version in einen angegebenen XML-Writer.

WriteTo(AddressingVersion, XmlDictionaryWriter, XmlDictionaryString, XmlDictionaryString)

Speichert die aktuelle Endpunktadresse einer angegebenen Version in einen XML-Wörterbuch-Writer mit einem angegebenen Namespace und lokalen Namen.

WriteTo(AddressingVersion, XmlWriter, String, String)

Speichert die aktuelle Endpunktadresse einer angegebenen Version in einen XML-Writer mit einem angegebenen Namespace und lokalen Namen.

WriteTo(AddressingVersion, XmlDictionaryWriter)

Speichert die aktuelle Endpunktadresse einer angegebenen Version in einen angegebenen XML-Wörterbuch-Writer.

public:
 void WriteTo(System::ServiceModel::Channels::AddressingVersion ^ addressingVersion, System::Xml::XmlDictionaryWriter ^ writer);
public void WriteTo (System.ServiceModel.Channels.AddressingVersion addressingVersion, System.Xml.XmlDictionaryWriter writer);
member this.WriteTo : System.ServiceModel.Channels.AddressingVersion * System.Xml.XmlDictionaryWriter -> unit
Public Sub WriteTo (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.WriteTo(
            AddressingVersion.WSAddressing10,
            dictWriter);
writer.Close();

Gilt für

WriteTo(AddressingVersion, XmlWriter)

Speichert die aktuelle Endpunktadresse einer angegebenen Version in einen angegebenen XML-Writer.

public:
 void WriteTo(System::ServiceModel::Channels::AddressingVersion ^ addressingVersion, System::Xml::XmlWriter ^ writer);
public void WriteTo (System.ServiceModel.Channels.AddressingVersion addressingVersion, System.Xml.XmlWriter writer);
member this.WriteTo : System.ServiceModel.Channels.AddressingVersion * System.Xml.XmlWriter -> unit
Public Sub WriteTo (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.WriteTo(
            AddressingVersion.WSAddressing10,
            writer);
writer.Close();

Gilt für

WriteTo(AddressingVersion, XmlDictionaryWriter, XmlDictionaryString, XmlDictionaryString)

Speichert die aktuelle Endpunktadresse einer angegebenen Version in einen XML-Wörterbuch-Writer mit einem angegebenen Namespace und lokalen Namen.

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

Parameter

addressingVersion
AddressingVersion

Die AddressingVersion der aktuellen Endpunktadresse.

writer
XmlDictionaryWriter

Der XmlDictionaryWriter, in dem die Endpunktadresse gespeichert wird.

localNamelocalname
XmlDictionaryString

Der lokale Name des XML-Knotens mit der Endpunktadresse.

ns
XmlDictionaryString

Die XmlDictionaryString, die den Namespace des XML-Knotens mit der Endpunktadresse enthält.

Ausnahmen

writer oder addressingVersion oder localName oder ns ist null.

Beispiele

    XmlWriter writer = XmlWriter.Create("addressdata.xml");
    XmlDictionaryWriter dictWriter = XmlDictionaryWriter.CreateDictionaryWriter(writer);

    XmlDictionary d = new XmlDictionary();
    XmlDictionaryString xdLocalName = new XmlDictionaryString(XmlDictionary.Empty, "EndpointReference",0);
    XmlDictionaryString xdNamespace = new XmlDictionaryString(XmlDictionary.Empty, "http://www.w3.org/2005/08/addressing", 0);
    
    endpointAddress.WriteTo(
                AddressingVersion.WSAddressing10,
                dictWriter,
                xdLocalName,
                xdNamespace);
    writer.Close();

Gilt für

WriteTo(AddressingVersion, XmlWriter, String, String)

Speichert die aktuelle Endpunktadresse einer angegebenen Version in einen XML-Writer mit einem angegebenen Namespace und lokalen Namen.

public:
 void WriteTo(System::ServiceModel::Channels::AddressingVersion ^ addressingVersion, System::Xml::XmlWriter ^ writer, System::String ^ localName, System::String ^ ns);
public:
 void WriteTo(System::ServiceModel::Channels::AddressingVersion ^ addressingVersion, System::Xml::XmlWriter ^ writer, System::String ^ localname, System::String ^ ns);
public void WriteTo (System.ServiceModel.Channels.AddressingVersion addressingVersion, System.Xml.XmlWriter writer, string localName, string ns);
public void WriteTo (System.ServiceModel.Channels.AddressingVersion addressingVersion, System.Xml.XmlWriter writer, string localname, string ns);
member this.WriteTo : System.ServiceModel.Channels.AddressingVersion * System.Xml.XmlWriter * string * string -> unit
member this.WriteTo : System.ServiceModel.Channels.AddressingVersion * System.Xml.XmlWriter * string * string -> unit
Public Sub WriteTo (addressingVersion As AddressingVersion, writer As XmlWriter, localName As String, ns As String)
Public Sub WriteTo (addressingVersion As AddressingVersion, writer As XmlWriter, localname As String, ns As String)

Parameter

addressingVersion
AddressingVersion

Die AddressingVersion der aktuellen Endpunktadresse.

writer
XmlWriter

Der XmlWriter, in dem die Endpunktadresse gespeichert wird.

localNamelocalname
String

Der lokale Name des XML-Knotens mit der Endpunktadresse.

ns
String

Die XmlDictionaryString, die den Namespace des XML-Knotens mit der Endpunktadresse enthält.

Ausnahmen

writer oder addressingVersion oder localName oder ns ist null.

Beispiele

    XmlWriter writer = XmlWriter.Create("addressdata.xml");
    XmlDictionaryWriter dictWriter = XmlDictionaryWriter.CreateDictionaryWriter(writer);

    XmlDictionary d = new XmlDictionary();
    XmlDictionaryString xdLocalName = new XmlDictionaryString(XmlDictionary.Empty, "EndpointReference",0);
    XmlDictionaryString xdNamespace = new XmlDictionaryString(XmlDictionary.Empty, "http://www.w3.org/2005/08/addressing", 0);
    
    endpointAddress.WriteTo(
                AddressingVersion.WSAddressing10,
                dictWriter,
                xdLocalName,
                xdNamespace);
    writer.Close();

Gilt für