AFResults.Item Property (AFAttribute)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This property returns the specified object from the collection by AFAttribute.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFResult this[ AFAttribute attribute ] { get; }
Public ReadOnly Default Property Item ( attribute As AFAttribute ) As AFResult Get Dim instance As AFResults Dim attribute As AFAttribute Dim value As AFResult value = instance(attribute)
public: property AFResult^ default[AFAttribute^ attribute] { AFResult^ get (AFAttribute^ attribute); }
member Item : AFResult with get
Parameters
- attribute
- Type: OSIsoft.AF.AssetAFAttribute
Specifies the collection member by AFAttribute.
Property Value
Type: AFResult
Remarks
The Item property is intended to be used to retrieve a specific
object in the collection. If you want to enumerate the collection, you can use
the GetEnumerator property in the standard way. With Microsoft
Visual Basic and C#, this property is automatically used within For Each In
constructs.