EndpointAddressAugust2004 クラス

定義

2004 年 8 月に発行された WS-Addressing のバージョンに準拠し、サービス コントラクトの一部として公開できるようにする、シリアル化可能な種類のエンドポイント アドレスを提供します。

public ref class EndpointAddressAugust2004 : System::Xml::Serialization::IXmlSerializable
public class EndpointAddressAugust2004 : System.Xml.Serialization.IXmlSerializable
type EndpointAddressAugust2004 = class
    interface IXmlSerializable
Public Class EndpointAddressAugust2004
Implements IXmlSerializable
継承
EndpointAddressAugust2004
実装

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

注釈

EndpointAddressはシリアル化できません。また、WS-Addressing 仕様の特定のバージョンに関連付けられています。 Windows Communication Foundation (WCF) は、シリアル化可能な型である EndpointAddress10 を提供するクラス WS-Addressing 提供します。これは V1 に準拠しています。

このクラスは、シリアル化可能で、従来の目的で特定のワイヤ形式にバインドされた EndpointAddress の WS-Addressing August 2004 準拠ラッパーを提供します。 FromEndpointAddress(EndpointAddress) メソッドは折り返しを行い、ToEndpointAddress メソッドはラップ解除を実行し、ネットワークでシリアル化された後にエンドポイント アドレスを回復できるようにします。

メソッド

名前 説明
Equals(Object)

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

(継承元 Object)
FromEndpointAddress(EndpointAddress)

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

GetHashCode()

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

(継承元 Object)
GetSchema(XmlSchemaSet)

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

GetType()

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

(継承元 Object)
MemberwiseClone()

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

(継承元 Object)
ToEndpointAddress()

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

ToString()

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

(継承元 Object)

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

名前 説明
IXmlSerializable.GetSchema()

null を返します。

IXmlSerializable.ReadXml(XmlReader)

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

IXmlSerializable.WriteXml(XmlWriter)

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

適用対象