Język

EndpointAddress.WriteContentsTo Metoda

Definicja

Zapisuje wszystkie węzły podrzędne węzła w określonym składniku zapisywania XML.

Przeciążenia

Nazwa Opis
WriteContentsTo(AddressingVersion, XmlDictionaryWriter)

Zapisuje wszystkie węzły podrzędne węzła w określonym składniku zapisywania słownika XML.

WriteContentsTo(AddressingVersion, XmlWriter)

Zapisuje wszystkie węzły podrzędne węzła w określonym składniku zapisywania XML.

WriteContentsTo(AddressingVersion, XmlDictionaryWriter)

Źródło:
EndpointAddress.cs
Źródło:
EndpointAddress.cs
Źródło:
EndpointAddress.cs

Zapisuje wszystkie węzły podrzędne węzła w określonym składniku zapisywania słownika 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

Adres AddressingVersion bieżącego punktu końcowego.

writer
XmlDictionaryWriter

Adres XmlDictionaryWriter punktu końcowego, do którego jest zapisywany.

Wyjątki

writer lub addressingVersion ma wartość null.

Przykłady

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

Dotyczy

WriteContentsTo(AddressingVersion, XmlWriter)

Źródło:
EndpointAddress.cs
Źródło:
EndpointAddress.cs
Źródło:
EndpointAddress.cs

Zapisuje wszystkie węzły podrzędne węzła w określonym składniku zapisywania 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

Adres AddressingVersion bieżącego punktu końcowego.

writer
XmlWriter

Adres XmlWriter punktu końcowego, do którego jest zapisywany.

Wyjątki

writer lub addressingVersion ma wartość null.

Przykłady

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

Dotyczy