ClientCredentialType Property
Collapse the table of content
Expand the table of content

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; }
/** @property */
public MessageCredentialType get_ClientCredentialType ()

/** @property */
public void set_ClientCredentialType (MessageCredentialType value)

public function get ClientCredentialType () : MessageCredentialType

public function set ClientCredentialType (value : MessageCredentialType)

Not applicable.

Property Value

A MessageCredentialType. The default is Windows.

Exception typeCondition


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 =

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

© 2016 Microsoft