Click or drag to resize

NetworkCredential Constructor (String, String)

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

Namespace:  Sfs2X.WebSocketSharp.Net
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public NetworkCredential(
	string username,
	string password
)

Parameters

username
Type: SystemString
A String that represents the username associated with the credentials.
password
Type: SystemString
A String that represents the password for the username associated with the credentials.
Exceptions
ExceptionCondition
ArgumentNullExceptionusername is .
ArgumentExceptionusername is empty.
See Also