Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WindowsClientCredential Class

 

Allows you to specify properties related to Windows credentials to be used to represent the client.

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

System::Object
  System.ServiceModel.Security::WindowsClientCredential

public ref class WindowsClientCredential sealed 

NameDescription
System_CAPS_pubpropertyAllowedImpersonationLevel

Gets or sets the allowed impersonation level.

System_CAPS_pubpropertyAllowNtlm

Obsolete. Gets or sets a value that indicates whether NTLM authentication should be allowed as Windows SSPI Negotiate authentication.

System_CAPS_pubpropertyClientCredential

Gets or sets the Windows client credential.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The WindowsClientCredential enables the setting of Windows client properties used when communicating with a service. The AllowedImpersonationLevel sets the level of impersonation the service can assume when impersonating the client. The ClientCredential enables a client to authenticate with username and password to the service. The AllowNtlm determines whether NTLM can be used to authenticate the client if Kerberos is not used.

The following example creates a client and gets a reference to the WindowsClientCredential. The code then changes the AllowedImpersonationLevel to a new value.

No code example is currently available or this language may not be supported.

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

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2017 Microsoft