EndpointAddress10 クラス

定義

WS-Addressing V1 に準拠し、サービス コントラクトの一部として公開可能なエンドポイント アドレスのシリアル化可能な型を用意します。

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 はシリアル化可能ではなく、WS-Addressing 仕様の特定のバージョンにも関連付けられていません。 このクラスは、シリアル化可能な (EndpointAddress インターフェイスを実装します)、WS-Addressing V1 ワイヤ形式にバインドされた ISerializable のための WS-Addressing V1 に準拠するラッパーを用意します。 FromEndpointAddress(EndpointAddress) メソッドがラッピングを行い、ToEndpointAddress メソッドがラッピング解除を行います。これにより、エンドポイント アドレスがネットワーク上でシリアル化された後で、それを復元できます。

Windows Communication Foundation (WCF) には、シリアル化可能な型を提供するクラスも用意されています。これは、EndpointAddressAugust2004レガシ目的で 2004 年 8 月WS-Addressing準拠しています。

メソッド

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
FromEndpointAddress(EndpointAddress)

指定したエンドポイント アドレスを使用して、EndpointAddress10 クラスの新しいインスタンスを初期化します。

GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetSchema(XmlSchemaSet)

指定したキャッシュ スキーマから、バージョン 1.0 のエンドポイント アドレスの XML 表現を記述する XML 修飾名を返します。

GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToEndpointAddress()

このシリアル化可能な型に格納されているエンドポイント アドレスを取得します。

ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

明示的なインターフェイスの実装

IXmlSerializable.GetSchema()

null を返します。

IXmlSerializable.ReadXml(XmlReader)

このメンバーは .NET Framework インフラストラクチャをサポートします。独自に作成したコードから直接使用するためのものではありません。

IXmlSerializable.WriteXml(XmlWriter)

このメンバーは .NET Framework インフラストラクチャをサポートします。独自に作成したコードから直接使用するためのものではありません。

適用対象