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 基础结构,不打算直接从代码使用。

适用于