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.

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)

public:
property MessageCredentialType ClientCredentialType {
	MessageCredentialType get();
	void set(MessageCredentialType value);
}

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
Return to top
Show:
© 2017 Microsoft