NetworkCredential Constructor (String, String)
Collapse the table of content
Expand the table of content

NetworkCredential Constructor (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 and password.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)

'Declaration
Public Sub New ( _
	userName As String, _
	password 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.

The constructor initializes a NetworkCredential object with the UserName property set to userName and the Password property set to password.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft