NetworkCredential Constructor (String, String, String, String) |
Initializes a new instance of the
NetworkCredential class with
the specified
username,
password,
domain and
roles.
Namespace:
Sfs2X.WebSocketSharp.Net
Assembly:
SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax public NetworkCredential(
string username,
string password,
string domain,
params string[] roles
)
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.
- domain
- Type: SystemString
A String that represents the domain associated with
the credentials.
- roles
- Type: SystemString
An array of String that represents the roles
associated with the credentials if any.
Exceptions Exception | Condition |
---|
ArgumentNullException | username is .
|
ArgumentException | username is empty.
|
See Also