Click or drag to resize
OSIsoft, LLC

AFKeyedResultsTKey, TResult Class

This class is used to return a dictionary of results along with error information.
Inheritance Hierarchy
SystemObject
  OSIsoft.AFAFErrorsTKey
    OSIsoft.AFAFKeyedResultsTKey, TResult

Namespace:  OSIsoft.AF
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.6.195
Syntax
public sealed class AFKeyedResults<TKey, TResult> : AFErrors<TKey>, 
	IEnumerable<TResult>, IEnumerable

Type Parameters

TKey
The type of keys in the Results dictionary and the Errors dictionary.
TResult
The type of values in the Results dictionary.

The AFKeyedResultsTKey, TResult type exposes the following members.

Constructors
  NameDescription
Public methodAFKeyedResultsTKey, TResult
Initializes a new instance of the AFKeyedResultsTKey, TResult class.
Public methodAFKeyedResultsTKey, TResult(Int32)
Initializes a new instance of the AFKeyedResultsTKey, TResult class.
Top
Properties
Methods
  NameDescription
Public methodAddError
Add an error that is not specific to a PISystem or PIServer.
(Inherited from AFErrorsTKey.)
Public methodAddPIServerError
Add a PIServer specific error.
(Inherited from AFErrorsTKey.)
Public methodAddPISystemError
Add a PISystem specific error.
(Inherited from AFErrorsTKey.)
Public methodAddResult
Add a result to the Results dictionary.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValue
Gets the value associated with the specified key.
Top
Extension Methods
Remarks
This class is used to return a dictionary of results along with error information from methods. This allows a list of inputs to be matched with the returned results and any errors.
Version Information

AFSDK

Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5
See Also
Enabling Operational Intelligence