AFNotification.FindContact Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Used for finding the AFNotificationContact with a given ID for
the notification contact, contact definition, or its template.
Namespace: OSIsoft.AF.Notification
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFNotificationContact FindContact( Guid contactID )
Public Function FindContact ( contactID As Guid ) As AFNotificationContact Dim instance As AFNotification Dim contactID As Guid Dim returnValue As AFNotificationContact returnValue = instance.FindContact(contactID)
public: AFNotificationContact^ FindContact( Guid contactID )
member FindContact : contactID : Guid -> AFNotificationContact
Parameters
- contactID
- Type: SystemGuid
The ID of the AFNotificationContact, the notification contact's Template, the notification contact's ContactDefinition, the contact definition's Template, or the notification contact's Contact to find.
Return Value
Type: AFNotificationContactReturns the AFNotificationContact that matches the specified contactID. If not found, is returned.
Remarks
Searches all child notification contacts of the AFNotificationTemplate for the
AFNotificationContact the matches the specified contactID.