pmMDA.NET

PersistentItemList.IndexOf Method 

[This is preliminary documentation and subject to change.]

Returns the index of a specified item.

public int IndexOf(
   IDataObject item
);

Parameters

item
The item to locate in this list.

Return Value

The index of the first occurrence of the item within the entire persistent item list, if found; otherwise, -1.

Remarks

If the item is not available in the local cache, this method asks the data object handler whether the indexed property contains the specified item. So this method may access the network and may be slow.

Exceptions

Exception Type Condition
ArgumentNullException The item is null.

See Also

PersistentItemList Class | PmMda.Net.Dog.Paging Namespace