EndpointAddress10 클래스

정의

WS-Addressing V1을 준수하며 엔드포인트 주소를 서비스 계약의 일부로 공개할 수 있는 serialize 가능한 형식을 가진 엔드포인트 주소를 제공합니다.

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
상속
EndpointAddress10
구현

예제

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

설명

EndpointAddress는 serialize할 수 없으며 특정 버전의 WS-Addressing 사양과도 연관이 없습니다. 이 클래스는 직렬화 가능(인터페이스 구현ISerializable)하고 WS-Addressing V1 와이어 형식에 EndpointAddress 바인딩된 WS-Addressing V1 규격 래퍼를 제공합니다. FromEndpointAddress(EndpointAddress) 메서드가 래핑을 수행하고 ToEndpointAddress 메서드가 래핑 해제를 담당하므로 네트워크에서 엔드포인트 주소가 serialize된 후에도 엔드포인트 주소를 복구할 수 있습니다.

Windows Communication Foundation(WCF)은 레거시 목적으로 2004년 8월에 WS-Addressing 직렬화 가능한 형식EndpointAddressAugust2004을 제공하는 클래스도 제공합니다.

메서드

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
FromEndpointAddress(EndpointAddress)

지정된 엔드포인트 주소를 사용하여 EndpointAddress10 클래스의 새 인스턴스를 초기화합니다.

GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetSchema(XmlSchemaSet)

지정한 캐시된 스키마의 버전 1.0 엔드포인트 주소에 대한 XML 표현을 나타내는 XML 정규화된 이름을 반환합니다.

GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToEndpointAddress()

serialize할 수 있는 이 형식에 포함된 엔드포인트 주소를 검색합니다.

ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

IXmlSerializable.GetSchema()

null를 반환합니다.

IXmlSerializable.ReadXml(XmlReader)

이 멤버는 .NET Framework 인프라를 지원하며 사용자 코드에서 직접 사용할 수 없습니다.

IXmlSerializable.WriteXml(XmlWriter)

이 멤버는 .NET Framework 인프라를 지원하며 사용자 코드에서 직접 사용할 수 없습니다.

적용 대상