AspNetCompatibilityRequirementsAttribute::IServiceBehavior::ApplyDispatchBehavior Method (ServiceDescription^, ServiceHostBase^)
.NET Framework (current version)
Checks that the type of hosting is consistent with the ASP.NET compatibility requirements.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
private: virtual void ApplyDispatchBehavior( ServiceDescription^ description, ServiceHostBase^ serviceHostBase ) sealed = IServiceBehavior::ApplyDispatchBehavior
Parameters
- description
-
Type:
System.ServiceModel.Description::ServiceDescription^
The ServiceDescription of the service.
- serviceHostBase
-
Type:
System.ServiceModel::ServiceHostBase^
The ServiceHostBase for hosting the service.
| Exception | Condition |
|---|---|
| ArgumentNullException | description is null. |
| InvalidOperationException | The service hosting is not compatible with the ASP.NET compatibility requirements. |
This method supports the WCF infrastructure and is not intended to be used directly from your code.
.NET Framework
Available since 3.0
Available since 3.0
Show: