UtilUserAccountAdd(UserPrincipal, WellKnownSidType) Method

Adds a new user account in the current machine context.

Definition

Namespace: DevCase.Core.Windows.Users
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void Add(
	UserPrincipal user,
	WellKnownSidType groupSid = WellKnownSidType.BuiltinUsersSid
)

Parameters

user  UserPrincipal
An UserPrincipal object that contains the user data.
groupSid  WellKnownSidType  (Optional)
A WellKnownSidType security identifier (SID) that determines the account group where to add the user.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also