AFNotificationContacts.Add Method (AFNotificationContactTemplate)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The Add method creates a new AFNotificationContact 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 AFNotificationContact Add( AFNotificationContactTemplate template )
Public Function Add ( template As AFNotificationContactTemplate ) As AFNotificationContact Dim instance As AFNotificationContacts Dim template As AFNotificationContactTemplate Dim returnValue As AFNotificationContact returnValue = instance.Add(template)
public: AFNotificationContact^ Add( AFNotificationContactTemplate^ template )
member Add : template : AFNotificationContactTemplate -> AFNotificationContact
Parameters
- template
- Type: OSIsoft.AF.NotificationAFNotificationContactTemplate
The AFNotificationContactTemplate that is used to create this new notification contact.
Return Value
Type: AFNotificationContactReturns the newly created object that was added to the collection.
Remarks
The new AFNotificationContact is created from an
AFNotificationContactTemplate and adds it to the collection.