C-DEngine 5.105

NetworkCredential Constructor (String, String, String, array<String>[]()[][])

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

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

Syntax


public NetworkCredential(
	string userName,
	string password,
	string domain,
	params string[] roles
)
Public Sub New ( _
	userName As String, _
	password As String, _
	domain As String, _
	ParamArray roles As String() _
)
public:
NetworkCredential(
	String^ userName, 
	String^ password, 
	String^ domain, 
	... array<String^>^ roles
)

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.
domain
Type: String
A String that represents the name of the user domain associated with the credentials.
roles
Type: array<String>[]()[][]
An array of String that contains the role names to which the user associated with the credentials belongs if any.

Exceptions


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