Export (0) Print
Expand All

ServiceMetadataBehavior.IServiceBehavior.ApplyDispatchBehavior Method

Implementation of IServiceBehavior that configures the underlying bindings to support the behavior on the service.

Namespace:  System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

void IServiceBehavior.ApplyDispatchBehavior(
	ServiceDescription description,
	ServiceHostBase serviceHostBase
)

Parameters

description
Type: System.ServiceModel.Description.ServiceDescription

The service description to be modified.

serviceHostBase
Type: System.ServiceModel.ServiceHostBase

The host of the service.

Implements

IServiceBehavior.ApplyDispatchBehavior(ServiceDescription, ServiceHostBase)

ExceptionCondition
ArgumentNullException

Either the description or the serviceHostBase are null.

InvalidOperationException

The destination address of the serviceHostBase is null.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2015 Microsoft