AFNotificationRuleSubscriber.FindNotificationRuleSubscriber Method (AFNotificationRule, 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 AFNotificationRule.
Namespace: OSIsoft.AF.Notification
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static AFNotificationRuleSubscriber FindNotificationRuleSubscriber( AFNotificationRule notificationRule, Guid id, Guid parentID )
Public Shared Function FindNotificationRuleSubscriber ( notificationRule As AFNotificationRule, id As Guid, parentID As Guid ) As AFNotificationRuleSubscriber Dim notificationRule As AFNotificationRule Dim id As Guid Dim parentID As Guid Dim returnValue As AFNotificationRuleSubscriber returnValue = AFNotificationRuleSubscriber.FindNotificationRuleSubscriber(notificationRule, id, parentID)
public: static AFNotificationRuleSubscriber^ FindNotificationRuleSubscriber( AFNotificationRule^ notificationRule, Guid id, Guid parentID )
static member FindNotificationRuleSubscriber : notificationRule : AFNotificationRule * id : Guid * parentID : Guid -> AFNotificationRuleSubscriber
Parameters
- notificationRule
- Type: OSIsoft.AF.NotificationAFNotificationRule
The AFNotificationRule 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 notificationRule. - 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 AFNotificationRule), then the value of this parameter should be Guid.Empty.
Return Value
Type: AFNotificationRuleSubscriberReturns the AFNotificationRuleSubscriber identified by the id in the specified notificationRule.
Remarks
The AFNotificationRuleSubscriber of the specified notificationRule is returned.
This method is more efficient if the parent unique identifier is also known.