IAdmBusinessUnitMembershipRules
The IAdmBusinessUnitMembershipRules interface represents a collection of membership rules of a business unit.
Inheritance: IEnumerable
Methods
-
Method
-
Description
-
Add()
-
Adds a new membership rule to the collection.
-
Clear()
-
Removes all membership rules from the collection.
-
Create()
-
Creates a new membership rule of the given type.
-
GetObject()
-
Gets a membership rule by its index.
-
Remove()
-
Removes the specified membership rule from the collection.
-
Sort()
-
Sorts rules in the collection by their priority.
-
GetEnumerator()
-
Retrieves an enumerator object for this collection of business unit membership rules.
Properties
Details
Add()
Adds a new membership rule to the collection.
void Add(IAdmBusinessUnitMembershipRule rule)
Remarks
To create a new membership rule, use the Create
method.
Clear()
Removes all membership rules from the collection.
void Clear()
Create()
Creates a new membership rule of the given type. The returned object can be added to the collection. See which interfaces are supported by different membership rule types.
IAdmBusinessUnitMembershipRule Create(ADM_BUSINESSUNITMEMBERSHIPTYPE_ENUM type)
Parameters
The type parameter specifies the type of the membership rule to create.
GetObject()
Gets a membership rule by its index. See which interfaces are supported by different membership rule types.
IAdmBusinessUnitMembershipRule GetObject(int index)
Remove()
Removes the specified membership rule from the collection.
void Remove(IAdmBusinessUnitMembershipRule rule)
Sort()
Sorts rules in the collection by their priority.
void Sort()
GetEnumerator()
Retrieves an enumerator object for this collection of business unit membership rules. The enumerator object implements the IEnumerator interface that can be used to enumerate membership rules in foreach loops.
IEnumerator GetEnumerator()
Count
Gets the number of membership rules in the collection.
- Type:
- int
- Access:
- Read-only
Sorted
Gets a value indicating whether membership rules in the collection are sorted by their priority.
- Type:
- bool
- Access:
- Read-only
Requirements
Minimum required version: 2009.1