BasicHttpMessageSecurity.ClientCredentialType Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Specifies the type of credential with which the client authenticates.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public BasicHttpMessageCredentialType ClientCredentialType { get; set; }

Property Value

Type: System.ServiceModel.BasicHttpMessageCredentialType

A member of the BasicHttpMessageCredentialType enumeration. The default value is UserName.

The return value can be one of the following enumeration members:

BasicHttpSecurity security = binding.Security;
BasicHttpMessageSecurity msgSecurity = security.Message;

.NET Framework
Available since 3.0
Return to top