AFNotificationRuleTemplate Constructor (String, AFElementTemplate, Boolean)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Initializes a new instance of the class with the specified name.
Namespace: OSIsoft.AF.Notification
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFNotificationRuleTemplate( string name, AFElementTemplate target = null, bool createEnabled = false )
Public Sub New ( name As String, Optional target As AFElementTemplate = Nothing, Optional createEnabled As Boolean = false ) Dim name As String Dim target As AFElementTemplate Dim createEnabled As Boolean Dim instance As New AFNotificationRuleTemplate(name, target, createEnabled)
public: AFNotificationRuleTemplate( String^ name, AFElementTemplate^ target = nullptr, bool createEnabled = false )
new : name : string * ?target : AFElementTemplate * ?createEnabled : bool (* Defaults: let _target = defaultArg target null let _createEnabled = defaultArg createEnabled false *) -> AFNotificationRuleTemplate
Parameters
- name
- Type: SystemString
The name of the newly created instance of the class. See the ValidateName(String, String) method for a description of what is valid when setting the name of the object. - target (Optional)
- Type: OSIsoft.AF.AssetAFElementTemplate
The target AFElementTemplate of the newly created AFNotificationRuleTemplate. - createEnabled (Optional)
- Type: SystemBoolean
Determines the initial status of auto created AFNotificationRule objects.
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.