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, password, and domain. [Edit]

public NetworkCredential (string userName, string password, string domain)

Parameters

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

Remarks

This constructor initializes the NetworkCredential.UserName property of the new instance to userName, the NetworkCredential.Password property to password, and the NetworkCredential.Domain property to domain. The values specified for userName, password and domain 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