AFNotification.LoadTargets Method
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
Loads the Target of the specified list of AFNotification objects.
Namespace: OSIsoft.AF.Notification
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static IList<Object> LoadTargets( IList<AFNotification> notifications, bool fullLoad )
Public Shared Function LoadTargets ( notifications As IList(Of AFNotification), fullLoad As Boolean ) As IList(Of Object) Dim notifications As IList(Of AFNotification) Dim fullLoad As Boolean Dim returnValue As IList(Of Object) returnValue = AFNotification.LoadTargets(notifications, fullLoad)
public: static IList<Object^>^ LoadTargets( IList<AFNotification^>^ notifications, bool fullLoad )
static member LoadTargets : notifications : IList<AFNotification> * fullLoad : bool -> IList<Object>
Parameters
- notifications
- Type: System.Collections.GenericIListAFNotification
The list of notifications to be loaded. If , then this method does nothing. All notifications in the list must be from the same PISystem. - fullLoad
- Type: SystemBoolean
If , then the target of the notifications 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 targets for each of the specified notifications.
Remarks
Loads the Target of the specified list of AFNotification 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 notifications in the list are loaded to avoid a call to
the server to load each of the targets individually.
Examples
See the example Loading Notifications
which illustrates this method to efficiently bulk load a list of notifications into the client.