C-DEngine 5.105

NetworkCredential Constructor (String, String)

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

Namespace:  WebSocketSharp.Net
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public NetworkCredential(
	string userName,
	string password
)
Public Sub New ( _
	userName As String, _
	password As String _
)
public:
NetworkCredential(
	String^ userName, 
	String^ password
)

Parameters

userName
Type: String
A String that represents the user name associated with the credentials.
password
Type: String
A String that represents the password for the user name associated with the credentials.

Exceptions


ExceptionCondition
ArgumentNullExceptionuserName is nullNothingnullptra null reference (Nothing in Visual Basic).
ArgumentExceptionuserName is empty.