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