Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFNotificationRuleTemplate Constructor (String, AFElementTemplate, Boolean)

AFNotificationRuleTemplate Constructor (String, AFElementTemplate, Boolean)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFNotificationRuleTemplate Constructor (String, AFElementTemplate, Boolean)
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.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8

See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in