O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 method NetworkCredential();  
   public method NetworkCredential(string userName, 
        string password);  
   public method NetworkCredential(string userName, 
        string password, string domain);  
// Public Instance Properties
   public field string Domain{set; get; } 
   public field string Password{set; get; } 
   public field string UserName{set; get; } 
// Public Instance Methods
   public method NetworkCredential GetCredential(Uri uri,        // implements ICredentials
        string authType);  
}

Returned By

CredentialCache.GetCredential(), ICredentials.GetCredential()

Passed To

CredentialCache.Add()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required