IAFDataProvider.TryGetItem Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Acquires a cache-enabled AFData instance if one is available.
Namespace: OSIsoft.AF.Data
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
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.