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