EndpointAddressAugust2004.FromEndpointAddress(EndpointAddress) Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Inicializa una nueva instancia de la clase EndpointAddress10 con una dirección de extremo especificada.
public:
static System::ServiceModel::EndpointAddressAugust2004 ^ FromEndpointAddress(System::ServiceModel::EndpointAddress ^ address);
public static System.ServiceModel.EndpointAddressAugust2004 FromEndpointAddress (System.ServiceModel.EndpointAddress address);
static member FromEndpointAddress : System.ServiceModel.EndpointAddress -> System.ServiceModel.EndpointAddressAugust2004
Public Shared Function FromEndpointAddress (address As EndpointAddress) As EndpointAddressAugust2004
Parámetros
- address
- EndpointAddress
La EndpointAddress utilizada para inicializar la instancia de esta clase.
Devoluciones
La clase EndpointAddressAugust2004 que contiene la dirección de extremo especificada.
Ejemplos
// 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()
Comentarios
La EndpointAddress no está vinculada a una versión determinada de la especificación WS-Addressing ni enlazada a un formato de conexión determinado.