Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft