IAFList Interface
- Last UpdatedNov 18, 2025
- 5 minute read
- PI System
- AF SDK 2024 R2
- Developer
An interface implemented by all collections in the AF SDK.

Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public interface IAFList : IList, ICollection, IEnumerable
Public Interface IAFList Inherits IList, ICollection, IEnumerable Dim instance As IAFList
public interface class IAFList : IList, ICollection, IEnumerable
type IAFList = interface interface IList interface ICollection interface IEnumerable end
The IAFList type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| Count | Gets the number of elements contained in the ICollection. (Inherited from ICollection.) | |
| Database |
This read-only property returns the AFDatabase where this object is defined.
| |
| Identity |
This read-only property contains identity of the object.
| |
| IsDeleted |
This read-only property indicates whether the owner of the collection has been deleted.
| |
| IsFixedSize | Gets a value indicating whether the IList has a fixed size. (Inherited from IList.) | |
| IsPaging |
This read-only property indicates whether the collection is currently paging its items.
| |
| IsReadOnly | Gets a value indicating whether the IList is read-only. (Inherited from IList.) | |
| IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from ICollection.) | |
| ItemInt32 | Gets or sets the element at the specified index. (Inherited from IList.) | |
| ItemGuid |
Gets the item with the specified id.
| |
| ItemString |
Returns the specified object from the collection by name.
| |
| ItemIdentity |
This read-only property specifies the identity of the objects within the collection.
| |
| PageSize |
The number of items that are loaded from the server into a page of the collection.
| |
| Parent |
The parent AFObject that owns the collection.
| |
| PISystem |
This read-only property allows access to the PISystem
associated with this collection.
| |
| SupportsPaging |
This read-only property indicates whether the collection supports paging.
| |
| SyncRoot | Gets an object that can be used to synchronize access to the ICollection. (Inherited from ICollection.) |
Methods
| Name | Description | |
|---|---|---|
| Add | Adds an item to the IList. (Inherited from IList.) | |
| Clear | Removes all items from the IList. (Inherited from IList.) | |
| Contains(Object) | Determines whether the IList contains a specific value. (Inherited from IList.) | |
| Contains(Guid) |
This method determines whether the collection contains a specific item referenced by id.
| |
| Contains(String) |
This method determines whether the collection contains a specific item referenced by name.
| |
| CopyTo | Copies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from ICollection.) | |
| GetEnumerator | Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.) | |
| IndexOf | Determines the index of a specific item in the IList. (Inherited from IList.) | |
| Insert | Inserts an item to the IList at the specified index. (Inherited from IList.) | |
| Remove | Removes the first occurrence of a specific object from the IList. (Inherited from IList.) | |
| RemoveAt | Removes the IList item at the specified index. (Inherited from IList.) | |
| Sort |
Sorts the items in the entire collection using the default comparer.
| |
| Sort(IComparer) |
Sorts the items in the entire collection using the specified comparer.
| |
| Sort(Int32, Int32, IComparer) |
Sorts the items in a range of items in the collection using the specified comparer.
|
Remarks
This interface provides a way to access common functionality in all
AF SDK collections in the SDK without having to know
the type of the objects within the collection.