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

AF SDK Reference

AFNotificationRule.LoadTargets Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFNotificationRule.LoadTargets Method
Loads the Target of the specified list of AFNotificationRule objects.

Namespace:  OSIsoft.AF.Notification
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public static IList<Object> LoadTargets(
	IList<AFNotificationRule> notificationRules,
	bool fullLoad
)
Public Shared Function LoadTargets ( 
	notificationRules As IList(Of AFNotificationRule),
	fullLoad As Boolean
) As IList(Of Object)

Dim notificationRules As IList(Of AFNotificationRule)
Dim fullLoad As Boolean
Dim returnValue As IList(Of Object)

returnValue = AFNotificationRule.LoadTargets(notificationRules, 
	fullLoad)
public:
static IList<Object^>^ LoadTargets(
	IList<AFNotificationRule^>^ notificationRules, 
	bool fullLoad
)
static member LoadTargets : 
        notificationRules : IList<AFNotificationRule> * 
        fullLoad : bool -> IList<Object> 

Parameters

notificationRules
Type: System.Collections.GenericIListAFNotificationRule
The list of AFNotificationRule objects to be loaded. If , then this method does nothing. All AFNotificationRule objects in the list must be from the same PISystem.
fullLoad
Type: SystemBoolean
If , then the target of the AFNotificationRule 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 AFNotificationRule objects.

Remarks

Loads the Target of the specified list of AFNotificationRule 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 AFNotificationRule objects in the list are loaded to avoid a call to the server to load each of the targets individually.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8

See Also

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