AFNotificationContactTemplate Constructor (AFContact, String)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Initializes a new instance of the class with default values.
Namespace: OSIsoft.AF.Notification
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFNotificationContactTemplate( AFContact contact, string name )
Public Sub New ( contact As AFContact, name As String ) Dim contact As AFContact Dim name As String Dim instance As New AFNotificationContactTemplate(contact, name)
public: AFNotificationContactTemplate( AFContact^ contact, String^ name )
new : contact : AFContact * name : string -> AFNotificationContactTemplate
Parameters
- contact
- Type: OSIsoft.AFAFContact
The AFContact that is associated with this notification contact template. - name
- Type: SystemString
The name for the new object, which must be unique within the collection. If the name ends with an asterisk (*), then a unique name will be generated based on the supplied name. If the name is or empty, then the name of the specified contact is used. See the ValidateName(String, String) method for a description of what is valid when setting the name of the object.
Remarks
The instance of the class created using this constructor does not belong
to any collection. To add the object to a collection, use the collection's
Add method.
Remarks
The new instance is associated with the PISystem of the specified AFContact and does not need to be added to the PISystem.NotificationContactTemplates collection.
This constructor is used to create notification contact templates of type Individual that is associated with an AFContact.