IAFDataProvider.TryGetItem Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Acquires a cache-enabled AFData instance if one is available.
Namespace: OSIsoft.AF.Data
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
bool TryGetItem( AFAttribute key, out AFData cachedData )
Function TryGetItem ( key As AFAttribute, <OutAttribute> ByRef cachedData As AFData ) As Boolean Dim instance As IAFDataProvider Dim key As AFAttribute Dim cachedData As AFData Dim returnValue As Boolean returnValue = instance.TryGetItem(key, cachedData)
bool TryGetItem( AFAttribute^ key, [OutAttribute] AFData^% cachedData )
abstract TryGetItem : key : AFAttribute * cachedData : AFData byref -> bool
Parameters
- key
- Type: OSIsoft.AF.AssetAFAttribute
The attribute to get an AFData instance for. - cachedData
- Type: OSIsoft.AF.DataAFData
The AFData instance.
Return Value
Type: BooleanTrue if a cache-enabled AFData instance was found, otherwise false.