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

AF SDK Reference

AFListResults(TKey, TResult) Class

  • Last UpdatedNov 18, 2025
  • 5 minute read
AFListResults(TKey, TResult) Class
This class is used to return a list of results along with error information.

Inheritance Hierarchy

SystemObject
  OSIsoft.AFAFErrorsTKey
    OSIsoft.AFAFListResultsTKey, TResult

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

Syntax

public sealed class AFListResults<TKey, TResult> : AFErrors<TKey>, 
	IList<TResult>, ICollection<TResult>, IEnumerable<TResult>, 
	IEnumerable
Public NotInheritable Class AFListResults(Of TKey, TResult)
	Inherits AFErrors(Of TKey)
	Implements IList(Of TResult), ICollection(Of TResult), 
	IEnumerable(Of TResult), IEnumerable

Dim instance As AFListResults(Of TKey, TResult)
generic<typename TKey, typename TResult>
public ref class AFListResults sealed : public AFErrors<TKey>, 
	IList<TResult>, ICollection<TResult>, IEnumerable<TResult>, 
	IEnumerable
[<SealedAttribute>]
type AFListResults<'TKey, 'TResult> =  
    class
        inherit AFErrors<'TKey>
        interface IList<'TResult>
        interface ICollection<'TResult>
        interface IEnumerable<'TResult>
        interface IEnumerable
    end

Type Parameters

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

The AFListResultsTKey, TResult type exposes the following members.

Constructors

  NameDescription
Public method
AFListResultsTKey, TResult
Initializes a new instance of the AFListResultsTKey, TResult class.
Public method
AFListResultsTKey, TResult(Int32)
Initializes a new instance of the AFListResultsTKey, TResult class.

Properties

Methods

  NameDescription
Public method
AddError
Add an error that is not specific to a PISystem or PIServer.
(Inherited from AFErrorsTKey.)
Public method
AddPIServerError
Add a PIServer specific error.
(Inherited from AFErrorsTKey.)
Public method
AddPISystemError
Add a PISystem specific error.
(Inherited from AFErrorsTKey.)
Public method
AddResult
Add a result to the Results list.
Public method
AddResults
Add a list of results to the Results list.
Public method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
ToString
Returns a string that represents the current object.
(Inherited from Object.)

Extension Methods

  NameDescription
Public Extension MethodCode example
ChunkedByTResult
This extension method breaks up search results into chunks to make it easier to page through and process IEnumerableT collections in chunks.
(Defined by AFSDKExtension.)

Remarks

This class is used to return a list 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


See Also

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