Name
NetworkCredential
Synopsis
This class is an
implementation of
ICredentials
for authentication schemes that use
passwords, such as basic and digest authentication, NTLM, and
Kerberos. See CredentialCache
for more details.
public class NetworkCredential : ICredentials { // Public Constructors public NetworkCredential( ); public NetworkCredential(stringuserName
, stringpassword
); public NetworkCredential(stringuserName
, stringpassword
, stringdomain
); // Public Instance Properties public string Domain{set; get; } public string Password{set; get; } public string UserName{set; get; } // Public Instance Methods public NetworkCredential GetCredential(Uriuri
, stringauthType
) // implements ICredentials }
Returned By
CredentialCache.GetCredential( )
,
ICredentials.GetCredential( )
Passed To
CredentialCache.Add( )
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.