Runs the execute function to assign new members to an Access Control Group.
Namespace: ININ.IceLib.Configuration.DataTypesAssembly: ININ.IceLib.Configuration (in ININ.IceLib.Configuration.dll) Version: 0.0.0.0 (22.3.0.218)
Syntax
C# |
---|
public static bool AssignToAccessControlGroup( ConfigurationManager configurationManager, AccessControlGroup accessControlGroup, IEnumerable<ConfigurationId> newMembers, AccessControlGroupObjectType objectType ) |
Visual Basic |
---|
Public Shared Function AssignToAccessControlGroup ( _ configurationManager As ConfigurationManager, _ accessControlGroup As AccessControlGroup, _ newMembers As IEnumerable(Of ConfigurationId), _ objectType As AccessControlGroupObjectType _ ) As Boolean |
Parameters
- configurationManager
- Type: ININ.IceLib.Configuration..::..ConfigurationManager
A Configuration Manager instance.
- accessControlGroup
- Type: ININ.IceLib.Configuration.DataTypes..::..AccessControlGroup
The access control group to assign the new members to.
- newMembers
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'ConfigurationId>)>)>
A list of new members.
- objectType
- Type: ININ.IceLib.Configuration.DataTypes..::..AccessControlGroupObjectType
The type of the object being assigned.
Return Value
trueTruetruetrue (True in Visual Basic) if they are being used, otherwise falseFalsefalsefalse (False in Visual Basic).Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | A parameter is nullNothingnullptra null reference (Nothing in Visual Basic). |
System..::..ArgumentException | An empty new members list was provided. |
System..::..ArgumentOutOfRangeException | Invalid AccessControlGroupObjectType was provided. |
Version Information
Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 SU 1 and beyond.
For 4.0, supported for IC Server version 4.0 SU 1 and beyond.