Skip to content

IAdmListItems

The IAdmListItems interface allows you to control the process of fetching list items and get column values. Each item in the list is represented by the IAdmListItem interface.

Inheritance: The IAdmListItems interface inherits from the IUnknown interface.

Methods

  • Method

  • Description

  • Abort()

  • Cancels the list generation.

  • GetColumnValues()

  • Returns column values for list items with the specified IDs.

  • GetAllItemIDs()

  • Returns an array of all item IDs in the list.

  • GetCount()

  • Returns the total number of items in the list.

  • GetItem()

  • Returns a list item with the specified ID.

  • GetItems()

  • Returns an array of list items with the specified IDs.

  • GetADObject()

  • Returns an Active Directory object represented by a list item with the specified ID.

  • GetItemStyles()

  • Returns visual styles for list items with the specified IDs.

  • GetItemTypes()

  • Returns information about types of the list items with the specified IDs.

  • Copy()

  • Creates a new instance of the IAdmListItems interface and copies list items with the specified IDs to it.

  • Remove()

  • Removes items with the specified IDs from the list.

  • ResetColumnValues()

  • Clears cached column values for list items with the specified IDs.

Properties

  • Property

  • Description

  • Completed

  • Gets a value that indicates whether list generation is completed.

  • Aborted

  • Gets a value that indicates whether list generation is cancelled.

  • GenerationException

  • Gets an exception that occurred during list generation.

  • GenerationLog

  • Gets the log of errors, warnings, and informational messages associated with list generation.

  • DataRetrievalLog

  • Gets the log of errors, warnings, and informational messages associated with retrieving data on list items.

Details

Abort()

Cancels the list generation.

void Abort()

GetColumnValues()

Returns column values for list items with the specified IDs.

IAdmSearchResult[] GetColumnValues(Int32[] itemIDs, Object[] columns)

Parameters

  • itemIDs - Specifies an array of IDs that identify list items for which to return column values.
  • columns - Specifies an array of columns for which to return values. Custom columns must be represented by the interface, not by the column ID.

Return value

An array of IAdmSearchResult interfaces that contain column values. Items in the array correspond to list items specified in the itemIDs array. To get a column value, pass the column name to the IAdmSearchResult::GetPropertyByName method as a property name. To get a value of a custom column, pass the custom column ID.

Remarks

Column values are cached. To clear cached column values, use the ResetColumnValues method.


GetAllItemIDs()

Returns an array of all item IDs in the list.

Int32[] GetAllItemIDs(Boolean throwIfGenerationNotComplete)

Parameters

The throwIfGenerationNotComplete parameter specifies whether the method should throw an exception if list generation is not completed.

Exceptions

  • InvalidOperationException
  • The throwIfGenerationNotComplete parameter is set to TRUE and list generation is not completed.

GetCount()

Returns the total number of items in the list.

Int32 GetCount(Boolean throwIfGenerationNotComplete)

Parameters

The throwIfGenerationNotComplete parameter specifies whether the method should throw an exception if list generation is not completed.

Exceptions

  • InvalidOperationException
  • The throwIfGenerationNotComplete parameter is set to TRUE and list generation is not completed.

GetItem()

Returns a list item with the specified ID.

IAdmListItem GetItem(Int32 itemID)

GetItems()

Returns an array of list items with the specified IDs.

IAdmListItem[] GetItems(Int32[] itemIDs)

Parameters

The itemIDs parameter specifies an array of IDs that identify list items to return.

Return value

An array of IAdmListItem interfaces that represent items in the list. Items in the array correspond to list items specified in the itemIDs array. If an item with the specified ID is not present in the list, the corresponding element of the array will be set to NULL.


GetADObject()

Returns an Active Directory object represented by a list item with the specified ID.

IAdmTop GetADObject(Int32 itemID)

Parameters

The itemID parameter specifies the ID of a list item for which to return an Active Directory object.

Remarks

The method returns NULL if a list item doesn’t represent an Active Directory object.


GetItemStyles()

Returns visual styles for list items with the specified IDs.

IAdmListItemStyle[] GetItemStyles(Int32[] itemIDs)

Parameters

The itemIDs parameter specifies an array of IDs that identify list items for which to return visual styles.

Return value

An array of IAdmListItemStyle interfaces that represent visual styles of list items. Items in the array correspond to list items specified in the itemIDs array. If a visual style is not defined for a list item, the corresponding array element will be set to NULL.


GetItemTypes()

Returns information about types of the list items with the specified IDs.

IAdmListItemTypeInfo[] GetItemTypes(Int32[] itemIDs)

Parameters

The itemIDs parameter specifies an array of list item IDs.

Return value

An array of IAdmListItemTypeInfo interfaces. Each item in the array contains information about a set of list items of a certain type.


Copy()

Creates a new instance of the IAdmListItems interface and copies list items with the specified IDs to it. Column values for list items are also copied to the new list.

IAdmListItems Copy(Int32[] itemIDs)

Parameters

The itemIDs parameter specifies an array of IDs of list items to copy.


Remove()

Removes items with the specified IDs from the list.

void Remove(Int32[] itemIDs)

Parameters

The itemIDs parameter specifies an array of IDs of list items to be removed.


ResetColumnValues()

Clears cached column values for list items with the specified IDs.

void ResetColumnValues(Int32[] itemIDs, String[] columnNames)

Parameters

  • itemIDs - Specifies an array of IDs of list items for which cached column values are to be cleared.
  • columnNames - Specifies an array of column names for which to clear cached values. Use column IDs to reset cached values for custom columns. To clear cached values for all columns except for custom columns, set the parameter to NULL.

Completed

Gets a value that indicates whether list generation is completed.

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

Aborted

Gets a value that indicates whether list generation is cancelled.

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

GenerationException

Gets an exception that occurred during list generation. The property is NULL if there are no exceptions and list generation is not aborted.

  • Type:
  • Object
  • Access:
  • Read-only

GenerationLog

Gets the log of errors, warnings, and informational messages associated with list generation.


DataRetrievalLog

Gets the log of errors, warnings, and informational messages associated with retrieving data on list items.


Requirements

Minimum required version: 2018.1

See also