EndpointAddress10 Class

Definition

Provides a serializable type of endpoint address that is WS-Addressing V1 compliant and that enables it to be exposed as part of the service contract.

public class EndpointAddress10 : System.Xml.Serialization.IXmlSerializable
Inheritance
EndpointAddress10
Implements

Examples

// Create an EndpointAddress with a specified address.
EndpointAddress epa1 = new EndpointAddress("http://localhost/ServiceModelSamples");
Console.WriteLine("The URI of the EndpointAddress is {0}:", epa1.Uri);
Console.WriteLine();

//Initialize an EndpointAddress10 from the endpointAddress.
EndpointAddress10 epa10 = EndpointAddress10.FromEndpointAddress(epa1);

//Serialize and then deserializde the Endpoint10 type.

//Convert the EndpointAddress10 back into an EndpointAddress.
EndpointAddress epa2 = epa10.ToEndpointAddress();

Console.WriteLine("The URI of the EndpointAddress is still {0}:", epa2.Uri);
Console.WriteLine();

Remarks

The EndpointAddress is not serializable nor is it tied to a particular version of the WS-Addressing specification. This class provides a WS-Addressing V1 compliant wrapper for the EndpointAddress that is serializable (implements the ISerializable interface) and bound to the WS-Addressing V1 wire format. The FromEndpointAddress(EndpointAddress) method does the wrapping and the ToEndpointAddress method does the unwrapping, allowing the recovery of the endpoint address after it is serialized on the wire.

Windows Communication Foundation (WCF) also supplies a class that provides a serializable type, EndpointAddressAugust2004, which is WS-Addressing August 2004 compliant for legacy purposes.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FromEndpointAddress(EndpointAddress)

Initializes a new instance of the EndpointAddress10 class with a specified endpoint address.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetSchema(XmlSchemaSet)

Returns an XML-qualified name that describes the XML representation of the version 1.0 endpoint address from a specified cached schema.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToEndpointAddress()

Retrieves the endpoint address contained in this serializable type.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IXmlSerializable.GetSchema()

Returns null.

IXmlSerializable.ReadXml(XmlReader)

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

IXmlSerializable.WriteXml(XmlWriter)

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1