共用方式為


ServiceSecurityAuditBehavior.IServiceBehavior.ApplyDispatchBehavior 方法

定義

提供功能以變更執行階段屬性值或插入自訂延伸物件,例如錯誤處理常式、訊息或參數攔截器、安全性延伸或其他自訂延伸物件。

 virtual void System.ServiceModel.Description.IServiceBehavior.ApplyDispatchBehavior(System::ServiceModel::Description::ServiceDescription ^ description, System::ServiceModel::ServiceHostBase ^ serviceHostBase) = System::ServiceModel::Description::IServiceBehavior::ApplyDispatchBehavior;
void IServiceBehavior.ApplyDispatchBehavior (System.ServiceModel.Description.ServiceDescription description, System.ServiceModel.ServiceHostBase serviceHostBase);
abstract member System.ServiceModel.Description.IServiceBehavior.ApplyDispatchBehavior : System.ServiceModel.Description.ServiceDescription * System.ServiceModel.ServiceHostBase -> unit
override this.System.ServiceModel.Description.IServiceBehavior.ApplyDispatchBehavior : System.ServiceModel.Description.ServiceDescription * System.ServiceModel.ServiceHostBase -> unit
Sub ApplyDispatchBehavior (description As ServiceDescription, serviceHostBase As ServiceHostBase) Implements IServiceBehavior.ApplyDispatchBehavior

參數

description
ServiceDescription

服務的 ServiceDescription

serviceHostBase
ServiceHostBase

服務的主機。

實作

例外狀況

descriptionserviceHostBasenull

備註

您可以使用這個方法,檢查或修改要建構來支援某些自訂執行案例的 ServiceHostBase 物件。

適用於