共用方式為


ClientCredentials.ApplyClientBehavior(ServiceEndpoint, ClientRuntime) 方法

定義

將指定的用戶端行為套用至端點。

public:
 virtual void ApplyClientBehavior(System::ServiceModel::Description::ServiceEndpoint ^ serviceEndpoint, System::ServiceModel::Dispatcher::ClientRuntime ^ behavior);
public virtual void ApplyClientBehavior (System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Dispatcher.ClientRuntime behavior);
abstract member ApplyClientBehavior : System.ServiceModel.Description.ServiceEndpoint * System.ServiceModel.Dispatcher.ClientRuntime -> unit
override this.ApplyClientBehavior : System.ServiceModel.Description.ServiceEndpoint * System.ServiceModel.Dispatcher.ClientRuntime -> unit
Public Overridable Sub ApplyClientBehavior (serviceEndpoint As ServiceEndpoint, behavior As ClientRuntime)

參數

serviceEndpoint
ServiceEndpoint

要套用指定之用戶端行為的端點。

behavior
ClientRuntime

要套用至所指定端點的用戶端行為。

實作

例外狀況

serviceEndpointbehaviornull

備註

用戶端行為只會在端點沒有與其相關聯的 SecurityBindingElement 時,才會套用至端點。

適用於