|
UserInfoRemoveLocalGroup Method
|
Removes local group if it exists.
Namespace: GSF.IdentityAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.251-beta+c370f3da3791592278238855631f53a5ff418c68
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