|
UserInfoRemoveLocalGroup Method
|
Removes local group if it exists.
Namespace: GSF.IdentityAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.249-beta+56964f8aed6f3f2e54faec1539f7ce0ba6548fdf
Syntaxpublic static bool RemoveLocalGroup(
string groupName
)
Public Shared Function RemoveLocalGroup (
groupName As String
) As Boolean
public:
static bool RemoveLocalGroup(
String^ groupName
)
static member RemoveLocalGroup :
groupName : string -> bool
GSF.Identity.UserInfo.RemoveLocalGroup = function(groupName);
View SourceParameters
- groupName String
- Group name to remove if it exists.
Return Value
Booleantrue if group was removed; otherwise,
false if group did not exist.
ExceptionsException | Condition |
---|
ArgumentNullException | groupName was null. |
ArgumentException | No groupName was specified. |
InvalidOperationException | Could not remove local group. |
See Also