共用方式為


WebScriptEnablingBehavior.ApplyDispatchBehavior 方法

定義

將此行為套用至服務端點。

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

參數

endpoint
ServiceEndpoint

公開合約的 ServiceEndpoint

endpointDispatcher
EndpointDispatcher

套用自訂行為的 EndpointDispatcher

備註

一般而言,當行為套用至端點時,Windows Communication Foundation (WCF 會自動呼叫此方法) 。 因此這個方法並不需要手動呼叫。

適用於