AFSearchTokenCollection.Item Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Gets or sets the element at the specified index.
Namespace: OSIsoft.AF.Search
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFSearchTokenBase this[ int index ] { get; set; }
Public Default Property Item ( index As Integer ) As AFSearchTokenBase Get Set Dim instance As AFSearchTokenCollection Dim index As Integer Dim value As AFSearchTokenBase value = instance(index) instance(index) = value
public: virtual property AFSearchTokenBase^ default[int index] { AFSearchTokenBase^ get (int index) sealed; void set (int index, AFSearchTokenBase^ value) sealed; }
abstract Item : AFSearchTokenBase with get, set override Item : AFSearchTokenBase with get, set
Parameters
- index
- Type: SystemInt32
The zero-based index of the element to get or set.
Return Value
Type: AFSearchTokenBaseThe element at the specified index.
Implements
IListTItemInt32
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is less than 0.-or-index is equal to or greater than Count. |