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).AddResult Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFKeyedResults(TKey, TResult).AddResult Method
Add a result to the Results dictionary.

Namespace:  OSIsoft.AF
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public void AddResult(
	TKey key,
	TResult result
)
Public Sub AddResult ( 
	key As TKey,
	result As TResult
)

Dim instance As AFKeyedResults
Dim key As TKey
Dim result As TResult

instance.AddResult(key, result)
public:
void AddResult(
	TKey key, 
	TResult result
)
member AddResult : 
        key : 'TKey * 
        result : 'TResult -> unit 

Parameters

key
Type: TKey
The dictionary key for the result added to the Results dictionary.
result
Type: TResult
The result to be added.

Exceptions

ExceptionCondition
ArgumentNullException Thrown when the requested key is .

Remarks

This method will add the result to the Results dictionary.

Version Information

AFSDK


See Also

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