AFNotificationContents.GetContentsForContact Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Gets the list of AFNotificationContent objects for the current user.
Namespace: OSIsoft.AF.Notification
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFNamedCollectionList<AFNotificationContent> GetContentsForContact()
Public Function GetContentsForContact As AFNamedCollectionList(Of AFNotificationContent) Dim instance As AFNotificationContents Dim returnValue As AFNamedCollectionList(Of AFNotificationContent) returnValue = instance.GetContentsForContact()
public: AFNamedCollectionList<AFNotificationContent^>^ GetContentsForContact()
member GetContentsForContact : unit -> AFNamedCollectionList<AFNotificationContent>
Return Value
Type: AFNamedCollectionListAFNotificationContentReturns a list of AFNotificationContent that are associated with the current user.
Remarks
If the AFNotificationContent in this collection contains an
AFNotificationContact in its NotificationContacts
collection whose Contact matches the current user,
then the content is included in the returned list.