AFAnalysis.LoadTargets Method
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
Loads the Target of the specified list of AFAnalysis objects.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static IList<Object> LoadTargets( IList<AFAnalysis> analyses, bool fullLoad )
Public Shared Function LoadTargets ( analyses As IList(Of AFAnalysis), fullLoad As Boolean ) As IList(Of Object) Dim analyses As IList(Of AFAnalysis) Dim fullLoad As Boolean Dim returnValue As IList(Of Object) returnValue = AFAnalysis.LoadTargets(analyses, fullLoad)
public: static IList<Object^>^ LoadTargets( IList<AFAnalysis^>^ analyses, bool fullLoad )
static member LoadTargets : analyses : IList<AFAnalysis> * fullLoad : bool -> IList<Object>
Parameters
- analyses
- Type: System.Collections.GenericIListAFAnalysis
The list of analyses to be loaded. If , then this method does nothing. All analyses in the list must be from the same PISystem. - fullLoad
- Type: SystemBoolean
If , then the target of the analyses will be fully loaded. You should fully load the target if you will be accessing information about the target that is not a simple property value.
Return Value
Type: IListObjectReturns the list of the unique targets for each of the specified analyses.
Remarks
Loads the Target of the specified list of AFAnalysis objects
from the server into the client. The fullLoad parameter controls if the
targets are fully loaded or just partially loaded.
This will ensure that the target of the analyses in the list are loaded to avoid a call to
the server to load each of the targets individually.
| This will currently only bulk load AFElement targets. Other types of targets will be loaded one at a time. |