AFNotificationRuleSubscribers.Add Method (AFNotificationContactTemplate)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The Add method creates a new AFNotificationRuleSubscriber from an
AFNotificationContactTemplate and adds it to the collection.
Namespace: OSIsoft.AF.Notification
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFNotificationRuleSubscriber Add( AFNotificationContactTemplate template )
Public Function Add ( template As AFNotificationContactTemplate ) As AFNotificationRuleSubscriber Dim instance As AFNotificationRuleSubscribers Dim template As AFNotificationContactTemplate Dim returnValue As AFNotificationRuleSubscriber returnValue = instance.Add(template)
public: AFNotificationRuleSubscriber^ Add( AFNotificationContactTemplate^ template )
member Add : template : AFNotificationContactTemplate -> AFNotificationRuleSubscriber
Parameters
- template
- Type: OSIsoft.AF.NotificationAFNotificationContactTemplate
The AFNotificationContactTemplate that is used to create this new AFNotificationRuleSubscriber.
Return Value
Type: AFNotificationRuleSubscriberReturns the newly created object that was added to the collection.
Remarks
The new AFNotificationRuleSubscriber is created from an
AFNotificationContactTemplate and added to the collection.