EndpointAddressAugust2004 EndpointAddressAugust2004 EndpointAddressAugust2004 EndpointAddressAugust2004 Class

Définition

Fournit un type sérialisable d'adresse de point de terminaison conforme avec la version de WS-Addressing publiée en août 2004 et permettant de révéler l'adresse dans le cadre du contrat de service.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
Héritage
EndpointAddressAugust2004EndpointAddressAugust2004EndpointAddressAugust2004EndpointAddressAugust2004
Implémente

Exemples

// 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()

Remarques

Le EndpointAddress n'est pas sérialisable ni attaché à une version particulière de la spécification WS-Addressing.The EndpointAddress is not serializable nor is it tied to a particular version of the WS-Addressing specification. Windows Communication Foundation (WCF) fournit une classe qui fournit un type sérialisable, EndpointAddress10, qui est conforme à WS-Addressing v1.Windows Communication Foundation (WCF) supplies a class that provides a serializable type, EndpointAddress10, which is WS-Addressing V1 compliant.

Cette classe fournit un wrapper conforme à WS-Addressing, version d'août 2004, pour EndpointAddress, sérialisable et lié à un format de transmission particulier pour des raisons d'héritage.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. La méthode FromEndpointAddress(EndpointAddress) assure l'encapsulage et la méthode ToEndpointAddress le désencapsulage, permettant ainsi la récupération de l'adresse de point de terminaison après sa sérialisation sur le câble.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.

Méthodes

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Détermine si l'objet spécifié est identique à l'objet actuel.Determines whether the specified object is equal to the current object.

(Inherited from Object)
FromEndpointAddress(EndpointAddress) FromEndpointAddress(EndpointAddress) FromEndpointAddress(EndpointAddress) FromEndpointAddress(EndpointAddress)

Initialise une nouvelle instance de la classe EndpointAddress10 avec une adresse de point de terminaison spécifiée.Initializes a new instance of the EndpointAddress10 class with a specified endpoint address.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Fait office de fonction de hachage par défaut.Serves as the default hash function.

(Inherited from Object)
GetSchema(XmlSchemaSet) GetSchema(XmlSchemaSet) GetSchema(XmlSchemaSet) GetSchema(XmlSchemaSet)

Retourne un nom qualifié XML qui décrit la représentation XML de l'adresse de point de terminaison version 1 à partir d'un schéma mis en cache spécifié.Returns an XML-qualified name that describes the XML representation of the version 1 endpoint address from a specified cached schema.

GetType() GetType() GetType() GetType()

Obtient le Type de l'instance actuelle.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crée une copie superficielle de l'objet Object actuel.Creates a shallow copy of the current Object.

(Inherited from Object)
ToEndpointAddress() ToEndpointAddress() ToEndpointAddress() ToEndpointAddress()

Récupère l'adresse de point de terminaison contenue dans ce type sérialisable.Retrieves the endpoint address contained in this serializable type.

ToString() ToString() ToString() ToString()

Retourne une chaîne qui représente l'objet actuel.Returns a string that represents the current object.

(Inherited from Object)

Implémentations d’interfaces explicites

IXmlSerializable.GetSchema() IXmlSerializable.GetSchema() IXmlSerializable.GetSchema() IXmlSerializable.GetSchema()

retourne null ;Returns null.

IXmlSerializable.ReadXml(XmlReader) IXmlSerializable.ReadXml(XmlReader) IXmlSerializable.ReadXml(XmlReader) IXmlSerializable.ReadXml(XmlReader)

Ce membre prend en charge l'infrastructure .NET Framework et n'est pas destiné à être utilisé directement à partir de votre code.This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

IXmlSerializable.WriteXml(XmlWriter) IXmlSerializable.WriteXml(XmlWriter) IXmlSerializable.WriteXml(XmlWriter) IXmlSerializable.WriteXml(XmlWriter)

Ce membre prend en charge l'infrastructure .NET Framework et n'est pas destiné à être utilisé directement à partir de votre code.This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

S’applique à