WebScriptEnablingBehavior.ApplyDispatchBehavior 方法

定義

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

C#
public override void ApplyDispatchBehavior(System.ServiceModel.Description.ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.EndpointDispatcher endpointDispatcher);

參數

endpoint
ServiceEndpoint

公開合約的 ServiceEndpoint

endpointDispatcher
EndpointDispatcher

套用自訂行為的 EndpointDispatcher

備註

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

適用於

產品 版本
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1