MessageSecurityOverHttp.ClientCredentialType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The value of ClientCredentialType is not a valid MessageCredentialType.
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: