UtilUserAccountAdd(UserPrincipal, WellKnownSidType) Method
Adds a new user account in the current machine context.
Namespace: DevCase.Core.Windows.UsersAssembly: 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
)
Public Shared Sub Add (
user As UserPrincipal,
Optional groupSid As WellKnownSidType = WellKnownSidType.BuiltinUsersSid
)
Dim user As UserPrincipal
Dim groupSid As WellKnownSidType
UtilUserAccount.Add(user, groupSid)
public:
static void Add(
UserPrincipal^ user,
WellKnownSidType groupSid = WellKnownSidType::BuiltinUsersSid
)
static member Add :
user : UserPrincipal *
?groupSid : WellKnownSidType
(* Defaults:
let _groupSid = defaultArg groupSid WellKnownSidType.BuiltinUsersSid
*)
-> unit
No code example is currently available or this language may not be supported.
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.
This is a code example.
No code example is currently available or this language may not be supported.
UserAccounts.Add(user:=myUserPrincipal, groupSid:=WellKnownSidType.BuiltinAdministratorsSid)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.