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

AF SDK Reference

AFElement.GetNotifications Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFElement.GetNotifications Method
Retrieves a collection of AFNotification objects that target this element.

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

Syntax

public AFNamedCollectionList<AFNotification> GetNotifications(
	AFSortField sortField,
	AFSortOrder sortOrder,
	int maxCount
)
Public Function GetNotifications ( 
	sortField As AFSortField,
	sortOrder As AFSortOrder,
	maxCount As Integer
) As AFNamedCollectionList(Of AFNotification)

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

returnValue = instance.GetNotifications(sortField, 
	sortOrder, maxCount)
public:
AFNamedCollectionList<AFNotification^>^ GetNotifications(
	AFSortField sortField, 
	AFSortOrder sortOrder, 
	int maxCount
)
member GetNotifications : 
        sortField : AFSortField * 
        sortOrder : AFSortOrder * 
        maxCount : int -> AFNamedCollectionList<AFNotification> 

Parameters

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 of AFNotification objects that target this element.

Remarks

This method will return the AFNotification objects that have an Analysis with its Target set to this element.

Version Information

AFSDK


See Also

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