Click or drag to resize

UserInfoCreateLocalGroup Method

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

Namespace: GSF.Identity
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.296-beta+d85e3b6b23676c9fffb3231e358b4f94ad70793d
Syntax
public static bool CreateLocalGroup(
	string groupName,
	string groupDescription = null
)
View Source

Parameters

groupName  String
Group name to create if it doesn't exist.
groupDescription  String  (Optional)
Optional group description.

Return Value

Boolean
true if group was created; otherwise, false if group already existed.
Exceptions
ExceptionCondition
ArgumentNullExceptiongroupName was null.
ArgumentExceptionNo groupName was specified.
InvalidOperationExceptionCould not create local group.
See Also