Removes a User Group from the Content Store.
Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax
Parameters
- userGroup
- Type: Ingeniux.CMSIUserGroup
The User Group to remove
Return Value
Type: BooleanTrue if "userGroup" is not null and exists, false otherwise.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | When the "userGroup" is the Administrators Group, which cannot be removed |
SecurityException | When the Operating User doesn't have administrative privileges. |
Remarks
If the "userGroup" parameter value is null, returns false.
The Administrators Group cannot be removed.
This method fires two events: BeforeUserGroupDelete and AfterUserGroupDelete.
See Also