UtilUserAccountCreate Method

Creates a new user account in the current machine context. This function does NOT adds a new user in the current machine.

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 UserPrincipal Create(
	string username,
	string password,
	string displayName,
	string description,
	bool canChangePwd,
	bool pwdExpires
)

Parameters

username  String
The user name.
password  String
The user password. If this value is empty, account is set to don't require any password.
displayName  String
The display name of the user account.
description  String
The description of the user account.
canChangePwd  Boolean
A value that indicates whether the user can change its password.
pwdExpires  Boolean
A value that indicates whether the password should expire.

Return Value

UserPrincipal
An UserPrincipal object that contains the user data.

Example

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

See Also