EndpointAddress10 クラス

定義

V1 に準拠しており、サービス コントラクトの一部として公開できる、WS-Addressing シリアル化可能な種類のエンドポイント アドレスを提供します。

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 を提供するクラスも用意されています。これは、レガシの目的 WS-Addressing 2004 年 8 月に準拠しています。

メソッド

名前 説明
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 インフラストラクチャをサポートしており、コードから直接使用するためのものではありません。

適用対象