AFKeyedResults(TKey, TResult).Item Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Gets the item with the specified key.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public TResult this[ TKey key ] { get; set; }
Public Default Property Item ( key As TKey ) As TResult Get Set Dim instance As AFKeyedResults Dim key As TKey Dim value As TResult value = instance(key) instance(key) = value
public: property TResult default[TKey key] { TResult get (TKey key); void set (TKey key, TResult value); }
member Item : 'TResult with get, set
Parameters
- key
- Type: TKey
The key whose value to get.
Return Value
Type: TResultReturns the item with the specified key.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when the requested key is . |
| NotImplementedException | Thrown when attempting to set a value for a key. |
Remarks
This property provides the ability to access a specific item in the list
by using a specified key.