Click or drag to resize

UserInfoRemoveLocalUser Method

Removes local user if it exists.

Namespace: GSF.Identity
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntax
public static bool RemoveLocalUser(
	string userName
)
View Source

Parameters

userName  String
User name to remove if it exists.

Return Value

Boolean
true if user was removed; otherwise, false if user did not exist.
Exceptions
ExceptionCondition
ArgumentNullExceptionuserName was null.
ArgumentExceptionNo userName was specified.
InvalidOperationExceptionCould not remove local user.
See Also