Editare

Partajați prin


MessageSecurityOverHttp.ClientCredentialType Property

Definition

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

public:
 property System::ServiceModel::MessageCredentialType ClientCredentialType { System::ServiceModel::MessageCredentialType get(); void set(System::ServiceModel::MessageCredentialType value); };
public System.ServiceModel.MessageCredentialType ClientCredentialType { get; set; }
member this.ClientCredentialType : System.ServiceModel.MessageCredentialType with get, set
Public Property ClientCredentialType As MessageCredentialType

Property Value

A MessageCredentialType. The default is Windows.

Exceptions

Examples

The following code sets this property.

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

Remarks

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

Applies to