Mono Class Library: System.Net.NetworkCredential Overview | Members

System.Net.NetworkCredential Constructor

Constructs and initializes a new instance of the System.Net.NetworkCredential class with the specified user name and password. [Edit]

public NetworkCredential (string userName, string password)

Parameters

userName
A string containing the user name for the account associated with the credentials. [Edit]
password
A string containing the password for the account associated with the credentials. [Edit]

Remarks

This constructor initializes the NetworkCredential.UserName property of the new instance to userName and the NetworkCredential.Password property to password. The NetworkCredential.Domain property is initialized to string.Empty. The values specified for userName and password are passed through to the operating system without modification. [Edit]

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0