System.Net.NetworkCredential Members

The members of System.Net.NetworkCredential are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Net.NetworkCredential class.

Initializes a new instance of the System.Net.NetworkCredential class with the specified user name and password.

Initializes a new instance of the System.Net.NetworkCredential class with the specified user name and password.

Initializes a new instance of the System.Net.NetworkCredential class with the specified user name, password, and domain.

Initializes a new instance of the System.Net.NetworkCredential class with the specified user name, password, and domain.

Public Properties

Domainstring.

Gets or sets the domain or computer name that verifies the credentials.

Passwordstring.

Gets or sets the password for the user name associated with the credentials.

SecurePasswordSystem.Security.SecureString.

Gets or sets the password as a System.Security.SecureString instance.

UserNamestring.

Gets or sets the user name associated with the credentials.

Public Methods

GetCredential(Uri, string) : NetworkCredential

Returns an instance of the System.Net.NetworkCredential class for the specified Uniform Resource Identifier (URI) and authentication type.

GetCredential(string, int, string) : NetworkCredential

Returns an instance of the System.Net.NetworkCredential class for the specified host, port, and authentication type.