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

AF SDK Reference

AFAnalysis.LoadTargets Method

  • Last UpdatedNov 18, 2025
  • 3 minute read
AFAnalysis.LoadTargets Method
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: IListObject
Returns 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.
Note Note
This will currently only bulk load AFElement targets. Other types of targets will be loaded one at a time.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in