DomainUserGroup Constructor

Initializes a new instance of the DomainUserGroup class.

Definition

Namespace: Ookii.AnswerFile
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.1.0+446b05628b4ec6933ca1b84b1f778ac43fb60ce9
C#
public DomainUserGroup(
	DomainUser domainUser,
	string group = "Administrators"
)

Parameters

domainUser  DomainUser
The DomainUser to add to the group.
group  String  (Optional)
The group to add the user to. Multiple groups may be separated by semicolons.

Remarks

If the DomainUserDomain property of domainUser is , this refers to a user that is a member of the domain that is being joined, not a local account. When using the ProvisionedDomainOptions class, the DomainUserDomain property may not be .

Exceptions

ArgumentNullExceptiondomainUser or group is .

See Also