MessageSecurityOverHttp::ClientCredentialType Property
.NET Framework (current version)
Specifies the type of client credential used for client authentication in the wsHttpBinding or wsDualHttpBinding bindings.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: property MessageCredentialType ClientCredentialType { MessageCredentialType get(); void set(MessageCredentialType value); }
Property Value
Type: System.ServiceModel::MessageCredentialTypeA MessageCredentialType. The default is Windows.
| Exception | Condition |
|---|---|
| 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
Available since 3.0
Available since 3.0
Show: