Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

MessageSecurityOverHttp.ClientCredentialType Property

Definition

Namespace:
System.ServiceModel
Assemblies:
System.ServiceModel.dll, System.ServiceModel.Http.dll
Assembly:
System.ServiceModel.dll
Assembly:
System.ServiceModel.Http.dll
Packages:
System.ServiceModel.Http v10.0.652802, System.ServiceModel.Primitives v10.0.652802
Package:
System.ServiceModel.Http v10.0.652802
Source:
MessageSecurityOverHttp.cs
Source:
MessageSecurityOverHttp.cs
Source:
MessageSecurityOverHttp.cs

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

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


Feedback

Was this page helpful?