Table of Contents

Class NetworkCredential

Namespace
System.Net
Assembly
System.Net.Http.dll

Class that keeps user name and password.

public class NetworkCredential
Inheritance
NetworkCredential
Inherited Members
Extension Methods

Constructors

NetworkCredential()

Construct class with empty user name and password

public NetworkCredential()

NetworkCredential(string, string)

Constructs credientials and initializes them by provided user name and pssword

public NetworkCredential(string userName, string password)

Parameters

userName string
password string

NetworkCredential(string, string, AuthenticationType)

Initializes a new instance of the NetworkCredential class.

public NetworkCredential(string userName, string password, AuthenticationType authenticationType)

Parameters

userName string

Name of the user.

password string

The password.

authenticationType AuthenticationType

Type of the authentication.

Properties

AuthenticationType

Gets or sets the type of the authentication.

public AuthenticationType AuthenticationType { get; set; }

Property Value

AuthenticationType

The type of the authentication.

Password

Set or get password.

public string Password { get; set; }

Property Value

string

UserName

Set or get user name.

public string UserName { get; set; }

Property Value

string