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) 自动调用此方法。 因此,不需要手动调用此方法。

适用于