Export (0) Print
Expand All

MessageSecurityOverHttp.ClientCredentialType Property

Specifies the type of client credential used for client authentication in the WsHttpBinding or WsDualHttpBinding bindings.

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

ArgumentOutOfRangeException

The value of ClientCredentialType is not a valid MessageCredentialType.

This property is used to set the ClientCredential type the will be used to authenticate the caller at the service. Valid types are:

The following code sets this property.

WSHttpBinding myBinding = new WSHttpBinding();
myBinding.Security.Mode = SecurityMode.Message;
myBinding.Security.Message.ClientCredentialType =
    MessageCredentialType.Windows;

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

ADD
Show:
© 2014 Microsoft