AspNetCompatibilityRequirementsAttribute::IServiceBehavior::ApplyDispatchBehavior Method (ServiceDescription^, ServiceHostBase^)

 

Checks that the type of hosting is consistent with the ASP.NET compatibility requirements.

Namespace:   System.ServiceModel.Activation
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
Return to top
Show: