Click or drag to resize

UserInfoCreateLocalUser Method

Creates a new local user if it does not exist already.

Namespace: GSF.Identity
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.256-beta+0e7e94d39a9b10efe7e26e3b8d5130afc0dd4d74
Syntax
public static bool CreateLocalUser(
	string userName,
	string password,
	string userDescription = null
)
View Source

Parameters

userName  String
User name to create if it doesn't exist.
password  String
Password to user for new user.
userDescription  String  (Optional)
Optional user description.

Return Value

Boolean
true if user was created; otherwise, false if user already existed.
Exceptions
ExceptionCondition
ArgumentNullExceptionuserName or password was null.
ArgumentExceptionNo userName was specified.
InvalidOperationExceptionCould not create local user.
See Also