WindowsCredential Class

The WindowsCredential class provides credential information that allows a WCF client to use a proxy server or connect to a service that requires integrated Windows authentication.

The WindowsCredential class can be invoked by the Windows property of the WCFClientCredential class.

Properties

WindowsCredential property Type Description
UserName UserNameCredential (class) Specifies the user name, password, and domain of the client.
AllowsImpersonationLevel ImpersonationLevel (enumeration) Determines the impersonation level of the WCF client. Values are: None (default), Anonymous, Identification, Impersonation, and Delegation.
AllowNtlm boolean Indicates whether NT LAN Manager (NTLM) authentication is allowed as Windows Security Support Provider Interface (SSPI) Negotiate authentication. Values are:
  • true (default) – authentication is allowed.
  • false – authentication is not allowed.
Related reference
ImpersonationLevel Enumeration
UserNameCredential Class
WCFClientCredential Class