EndpointAddressAugust2004 Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public ref class EndpointAddressAugust2004 : System::Xml::Serialization::IXmlSerializable
public class EndpointAddressAugust2004 : System.Xml.Serialization.IXmlSerializable
type EndpointAddressAugust2004 = class
interface IXmlSerializable
Public Class EndpointAddressAugust2004
Implements IXmlSerializable
- Inheritance
-
EndpointAddressAugust2004
- Implements
// 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();
' Create an EndpointAddress with a specified address.
Dim epa1 As New EndpointAddress("http://localhost/ServiceModelSamples")
Console.WriteLine("The URI of the EndpointAddress is {0}:", epa1.Uri)
Console.WriteLine()
'Initialize an EndpointAddressAugust2004 from the endpointAddress.
Dim epaA4 As EndpointAddressAugust2004 = EndpointAddressAugust2004.FromEndpointAddress(epa1)
'Serialize and then deserializde the EndpointAugust2004 type.
'Convert the EndpointAugust2004 back into an EndpointAddress.
Dim epa2 As EndpointAddress = epaA4.ToEndpointAddress()
Console.WriteLine("The URI of the EndpointAddress is still {0}:", epa2.Uri)
Console.WriteLine()
The EndpointAddress is not serializable nor is it tied to a particular version of the WS-Addressing specification. Windows Communication Foundation (WCF) 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.
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
From |
Initializes a new instance of the EndpointAddress10 class with a specified endpoint address. |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Returns an XML-qualified name that describes the XML representation of the version 1 endpoint address from a specified cached schema. |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Retrieves the endpoint address contained in this serializable type. |
To |
Returns a string that represents the current object. (Inherited from Object) |
IXml |
Returns |
IXml |
This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
IXml |
This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
Toode | Versioonid |
---|---|
.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 |
Toote „.NET“ tagasiside
.NET on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: