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