MessageSecurityOverTcp.ClientCredentialType Property


Specifies the type of client credential the client uses to authenticate itself to the service at the SOAP level.

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

public MessageCredentialType ClientCredentialType { get; set; }

Exception Condition

The value of ClientCredentialType is not a valid MessageCredentialType.

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

The following code shows how to access and set this property.

NetTcpBinding binding = new NetTcpBinding();
// Specify the mode, then the credential type.
binding.Security.Mode = SecurityMode.Message;
binding.Security.Message.ClientCredentialType =
binding.Security.Message.AlgorithmSuite =

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Return to top