Export (0) Print
Expand All

MessageSecurityOverHttp.ClientCredentialType Property

Specifies the type of client credential used for client authentication in the wsHttpBinding or wsDualHttpBinding bindings.

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

'Declaration
Public Property ClientCredentialType As MessageCredentialType

ExceptionCondition
ArgumentOutOfRangeException

The value of ClientCredentialType is not a valid MessageCredentialType.

This property is used to set the MessageCredentialType that is used to authenticate the caller at the service. Valid types are:

The following code sets this property.

WSHttpBinding myBinding = new WSHttpBinding();
myBinding.Security.Mode = SecurityMode.Message;
myBinding.Security.Message.ClientCredentialType =
    MessageCredentialType.Windows;

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft