WindowsClientCredential Class
Allows you to specify properties related to Windows credentials to be used to represent the client.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Name | Description | |
|---|---|---|
![]() | AllowedImpersonationLevel | Gets or sets the allowed impersonation level. |
![]() | AllowNtlm | Obsolete. Gets or sets a value that indicates whether NTLM authentication should be allowed as Windows SSPI Negotiate authentication. |
![]() | ClientCredential | Gets or sets the Windows client credential. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | ToString() | 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.
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.

