Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFKeyedResults(TKey, TResult).Item Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFKeyedResults(TKey, TResult).Item Property
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: TResult
Returns the item with the specified key.

Exceptions

ExceptionCondition
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.

Version Information

AFSDK


See Also

TitleResults for “How to create a CRG?”Also Available in