Class NetworkCredential
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
NetworkCredential(string, string, AuthenticationType)
Initializes a new instance of the NetworkCredential class.
public NetworkCredential(string userName, string password, AuthenticationType authenticationType)
Parameters
userName
stringName of the user.
password
stringThe password.
authenticationType
AuthenticationTypeType 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
UserName
Set or get user name.
public string UserName { get; set; }