更新 : 2007 年 11 月
エンドポイント全体にわたってクライアントの変更または拡張を実装します。
名前空間 :
System.ServiceModel.Description
アセンブリ :
System.ServiceModel (System.ServiceModel.dll 内)
Sub ApplyClientBehavior ( _
endpoint As ServiceEndpoint, _
clientRuntime As ClientRuntime _
)
Dim instance As IEndpointBehavior
Dim endpoint As ServiceEndpoint
Dim clientRuntime As ClientRuntime
instance.ApplyClientBehavior(endpoint, _
clientRuntime)
void ApplyClientBehavior(
ServiceEndpoint endpoint,
ClientRuntime clientRuntime
)
void ApplyClientBehavior(
ServiceEndpoint^ endpoint,
ClientRuntime^ clientRuntime
)
void ApplyClientBehavior(
ServiceEndpoint endpoint,
ClientRuntime clientRuntime
)
function ApplyClientBehavior(
endpoint : ServiceEndpoint,
clientRuntime : ClientRuntime
)
エンドポイントで使用されるすべてのメッセージまたは特定の操作について、クライアント ランタイムを表示または変更したり、クライアント ランタイムにカスタム拡張機能を追加したりするには、ApplyClientBehavior メソッドを実装します。クライアントのランタイム オブジェクトで実行できるカスタマイズの詳細については、ClientRuntime および ClientOperation を参照してください。
動作をサービス アプリケーションでのみ使用する場合は、ApplyClientBehavior メソッドで NotImplementedException をスローさせることをお勧めします。
既に他の動作によって一部の操作が追加されるか、ランタイムから削除されている可能性があるので、Operations プロパティにある DispatchOperation オブジェクトと同じ数の操作が説明に存在するという保証はありません。
- 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
.NET Framework
サポート対象 : 3.5、3.0
参照