NetworkCredential Constructor (String, String, String)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the NetworkCredential class with the specified user name, password, and domain.
Assembly: System.Net (in System.Net.dll)
'Declaration Public Sub New ( _ userName As String, _ password As String, _ domain As String _ )
Parameters
- userName
- Type: System.String
The user name associated with the credentials.
- password
- Type: System.String
The password for the user name associated with the credentials.
- domain
- Type: System.String
The domain associated with these credentials.
The constructor initializes a NetworkCredential object with the UserName property set to userName, the Password property set to password, and the Domain property set to domain.
Show: