共用方式為


WebScriptEnablingBehavior.ApplyClientBehavior 方法

定義

將行為套用至端點上的用戶端。

public:
 override void ApplyClientBehavior(System::ServiceModel::Description::ServiceEndpoint ^ endpoint, System::ServiceModel::Dispatcher::ClientRuntime ^ clientRuntime);
public override void ApplyClientBehavior (System.ServiceModel.Description.ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.ClientRuntime clientRuntime);
override this.ApplyClientBehavior : System.ServiceModel.Description.ServiceEndpoint * System.ServiceModel.Dispatcher.ClientRuntime -> unit
Public Overrides Sub ApplyClientBehavior (endpoint As ServiceEndpoint, clientRuntime As ClientRuntime)

參數

endpoint
ServiceEndpoint

公開合約的 ServiceEndpoint

clientRuntime
ClientRuntime

套用自訂行為的 ClientRuntime

備註

您可以實作 ApplyClientBehavior(ServiceEndpoint, ClientRuntime) 方法,以在搭配端點的所有訊息上或針對特定作業檢視、修改或將自訂延伸加入至用戶端執行階段。

適用於