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 Property ClientCredentialType As MessageCredentialType

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.

Dim binding As New NetTcpBinding()
' Specify the mode, then the credential type.
binding.Security.Mode = SecurityMode.Message
binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName
binding.Security.Message.AlgorithmSuite = System.ServiceModel.Security.SecurityAlgorithmSuite.Basic256

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