WebHttpBehavior.AddServerErrorHandlers 方法

定义

重写此方法,以更改服务上发生的错误的处理方式。

protected:
 virtual void AddServerErrorHandlers(System::ServiceModel::Description::ServiceEndpoint ^ endpoint, System::ServiceModel::Dispatcher::EndpointDispatcher ^ endpointDispatcher);
protected virtual void AddServerErrorHandlers (System.ServiceModel.Description.ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.EndpointDispatcher endpointDispatcher);
abstract member AddServerErrorHandlers : System.ServiceModel.Description.ServiceEndpoint * System.ServiceModel.Dispatcher.EndpointDispatcher -> unit
override this.AddServerErrorHandlers : System.ServiceModel.Description.ServiceEndpoint * System.ServiceModel.Dispatcher.EndpointDispatcher -> unit
Protected Overridable Sub AddServerErrorHandlers (endpoint As ServiceEndpoint, endpointDispatcher As EndpointDispatcher)

参数

endpoint
ServiceEndpoint

服务终结点。

endpointDispatcher
EndpointDispatcher

终结点调度程序。

适用于