Share via


ClientCredentials.IEndpointBehavior.ApplyClientBehavior Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Applies the specified client behavior to the endpoint.

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

Syntax

'Declaration
Private Sub ApplyClientBehavior ( _
    serviceEndpoint As ServiceEndpoint, _
    behavior As ClientRuntime _
) Implements IEndpointBehavior.ApplyClientBehavior
void IEndpointBehavior.ApplyClientBehavior(
    ServiceEndpoint serviceEndpoint,
    ClientRuntime behavior
)

Parameters

Implements

IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime)

Exceptions

Exception Condition
ArgumentNullException

serviceEndpoint or behavior is nulla null reference (Nothing in Visual Basic).

Remarks

The client behavior is applied to the endpoint only if the endpoint does not have a SecurityBindingElement associated with it.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.