共用方式為


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

端點發送器。

適用於