Skip to content

IAdmBusinessUnitMembershipRules

The IAdmBusinessUnitMembershipRules interface represents a collection of membership rules of a Business Unit.

Inheritance: The IAdmBusinessUnitMembershipRules interface inherits from the IEnumerable interface.

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

  • Property

  • Description

  • Count

  • Gets the number of membership rules in the collection.

  • Sorted

  • Gets a value indicating whether membership rules in the collection are sorted by their priority.

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(Int32 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:
  • Int32
  • Access:
  • Read-only

Sorted

Gets a value indicating whether membership rules in the collection are sorted by their priority.

  • Type:
  • Boolean
  • Access:
  • Read-only

Requirements

Minimum required version: 2009.1

See also