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

AF SDK Reference

AFNotification.FindNotificationsByElement Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFNotification.FindNotificationsByElement Method
Performs a non-paged search to retrieve a collection of all the AFNotification objects that have the specified AFElement as a target of its analysis.

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

Syntax

public static AFNamedCollectionList<AFNotification> FindNotificationsByElement(
	AFElement target,
	AFSortField sortField,
	AFSortOrder sortOrder,
	int maxCount
)
Public Shared Function FindNotificationsByElement ( 
	target As AFElement,
	sortField As AFSortField,
	sortOrder As AFSortOrder,
	maxCount As Integer
) As AFNamedCollectionList(Of AFNotification)

Dim target As AFElement
Dim sortField As AFSortField
Dim sortOrder As AFSortOrder
Dim maxCount As Integer
Dim returnValue As AFNamedCollectionList(Of AFNotification)

returnValue = AFNotification.FindNotificationsByElement(target, 
	sortField, sortOrder, maxCount)
public:
static AFNamedCollectionList<AFNotification^>^ FindNotificationsByElement(
	AFElement^ target, 
	AFSortField sortField, 
	AFSortOrder sortOrder, 
	int maxCount
)
static member FindNotificationsByElement : 
        target : AFElement * 
        sortField : AFSortField * 
        sortOrder : AFSortOrder * 
        maxCount : int -> AFNamedCollectionList<AFNotification> 

Parameters

target
Type: OSIsoft.AF.AssetAFElement
The AFElement that is the target of the analysis of the desired AFNotification objects.
sortField
Type: OSIsoft.AFAFSortField
The field or property of the object used to sort the returned collection.
sortOrder
Type: OSIsoft.AFAFSortOrder
The order that the returned collection is sorted.
maxCount
Type: SystemInt32
The maximum number of objects to be returned.

Return Value

Type: AFNamedCollectionListAFNotification
Returns a collection containing the first page of AFNotification objects which have the specified target.

Remarks

An AFNotification is returned in the collection if its Analysis has its Target set to the AFElement specified in the target parameter.

Version Information

AFSDK


See Also

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