EndpointAddress10 EndpointAddress10 EndpointAddress10 EndpointAddress10 Class

Définition

Fournit un type sérialisable d'adresse de point de terminaison qui est compatible WS-Addressing V1 et qui lui permet d'être exposé dans le cadre du contrat de service.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 ref class EndpointAddress10 : System::Xml::Serialization::IXmlSerializable
public class EndpointAddress10 : System.Xml.Serialization.IXmlSerializable
type EndpointAddress10 = class
    interface IXmlSerializable
Public Class EndpointAddress10
Implements IXmlSerializable
Héritage
EndpointAddress10EndpointAddress10EndpointAddress10EndpointAddress10
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 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();
' 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 EndpointAddress10 from the endpointAddress.
Dim epa10 As EndpointAddress10 = EndpointAddress10.FromEndpointAddress(epa1)

'Serialize and then deserializde the Endpoint10 type.

'Convert the EndpointAddress10 back into an EndpointAddress.
Dim epa2 As EndpointAddress = epa10.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. Cette classe fournit un wrapper compatible WS-Addressing V1 pour le EndpointAddress qui est sérialisable (implémente l'interface ISerializable) et lié au format de transmission WS-Addressing V1.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. 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 it is serialized on the wire.

Windows Communication Foundation (WCF) fournit également une classe qui fournit un type sérialisable, EndpointAddressAugust2004, qui est compatible WS-Addressing en août 2004 pour des raisons d’héritage.Windows Communication Foundation (WCF) also supplies a class that provides a serializable type, EndpointAddressAugust2004, which is WS-Addressing August 2004 compliant for legacy purposes.

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.0 à partir d’un schéma mis en cache spécifié.Returns an XML-qualified name that describes the XML representation of the version 1.0 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 à