AFNotificationContact.FindNotificationContact Method (AFNotificationTemplate, Guid, Guid)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Retrieves the AFNotificationContact object with the specified unique identifier
and parent unique identifier within the AFNotificationTemplate.
Namespace: OSIsoft.AF.Notification
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static AFNotificationContact FindNotificationContact( AFNotificationTemplate template, Guid id, Guid parentID )
Public Shared Function FindNotificationContact ( template As AFNotificationTemplate, id As Guid, parentID As Guid ) As AFNotificationContact Dim template As AFNotificationTemplate Dim id As Guid Dim parentID As Guid Dim returnValue As AFNotificationContact returnValue = AFNotificationContact.FindNotificationContact(template, id, parentID)
public: static AFNotificationContact^ FindNotificationContact( AFNotificationTemplate^ template, Guid id, Guid parentID )
static member FindNotificationContact : template : AFNotificationTemplate * id : Guid * parentID : Guid -> AFNotificationContact
Parameters
- template
- Type: OSIsoft.AF.NotificationAFNotificationTemplate
The AFNotificationTemplate to search for the AFNotificationContact identified by the specified id parameter. - id
- Type: SystemGuid
The unique identifier of the AFNotificationContact to search for in the specified template. - parentID
- Type: SystemGuid
The unique identifier of the parent AFNotificationContact of the AFNotificationContact identified by the id parameter. If the AFNotificationContact is not owned by another AFNotificationContact (i.e. owned by the AFNotificationTemplate), then the value of this parameter should be Guid.Empty.
Return Value
Type: AFNotificationContactReturns the AFNotificationContact identified by the id in the specified template.
Remarks
The AFNotificationContact of the specified template is returned.
This method is more efficient if the parent unique identifier is also known.