EndpointAddressAugust2004 Class
Provides a serializable type of endpoint address that is compliant with the version of WS-Addressing published in August 2004 and that enables it to be exposed as part of the service contract.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The EndpointAddressAugust2004 type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | FromEndpointAddress | Initializes a new instance of the EndpointAddress10 class with a specified endpoint address. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetSchema | Returns an XML-qualified name that describes the XML representation of the version 1 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.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IXmlSerializable.GetSchema | Returns null. |
![]() ![]() | IXmlSerializable.ReadXml | This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
![]() ![]() | IXmlSerializable.WriteXml | This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
The EndpointAddress is not serializable nor is it tied to a particular version of the WS-Addressing specification. supplies a class that provides a serializable type, EndpointAddress10, which is WS-Addressing V1 compliant.
This class provides a WS-Addressing August 2004 compliant wrapper for the EndpointAddress that is serializable and bound to a particular wire format for legacy purposes. The FromEndpointAddress(EndpointAddress) method does the wrapping and the ToEndpointAddress method does the unwrapping, allowing the recovery of the endpoint address after being serialized on the wire.
// 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 EndpointAddressAugust2004 from the endpointAddress. EndpointAddressAugust2004 epaA4 = EndpointAddressAugust2004.FromEndpointAddress(epa1); //Serialize and then deserializde the EndpointAugust2004 type. //Convert the EndpointAugust2004 back into an EndpointAddress. EndpointAddress epa2 = epaA4.ToEndpointAddress(); Console.WriteLine("The URI of the EndpointAddress is still {0}:", epa2.Uri); Console.WriteLine();
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.




