共用方式為


AspNetCompatibilityRequirementsAttribute.IServiceBehavior.ApplyDispatchBehavior 方法

定義

檢查裝載的類型是否與 ASP.NET 相容性需求一致。

 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

用來裝載服務的 ServiceHostBase

實作

例外狀況

descriptionnull

服務裝載與 ASP.NET 相容性需求不相容。

備註

這個方法支援 WCF 基礎結構,不適合直接從您的程式碼使用。

適用於