AFNotification Constructor (String, AFElementTemplate)
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
Note: This API is now obsolete.
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
[BrowsableAttribute(false)] [ObsoleteAttribute("This constructor has been replaced by 'AFNotification(string,AFNotificationTemplate,AFBaseElement)'.")] public AFNotification( string name, AFElementTemplate template )
<BrowsableAttribute(false)> <ObsoleteAttribute("This constructor has been replaced by 'AFNotification(string,AFNotificationTemplate,AFBaseElement)'.")> Public Sub New ( name As String, template As AFElementTemplate ) Dim name As String Dim template As AFElementTemplate Dim instance As New AFNotification(name, template)
public: [BrowsableAttribute(false)] [ObsoleteAttribute(L"This constructor has been replaced by 'AFNotification(string,AFNotificationTemplate,AFBaseElement)'.")] AFNotification( String^ name, AFElementTemplate^ template )
[<BrowsableAttribute(false)>] [<ObsoleteAttribute("This constructor has been replaced by 'AFNotification(string,AFNotificationTemplate,AFBaseElement)'.")>] new : name : string * template : AFElementTemplate -> AFNotification
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. - template
- Type: OSIsoft.AF.AssetAFElementTemplate
The AFNotificationTemplate that is to be used to create a new instance of the AFNotification object. If , then the element is created without a template and properties normally defined by the template will be defined by the element instead.
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
Obsolete (compiler warning) in 3.1.1Obsolete (compiler warning) in 3.1.0
Obsolete (compiler warning) in 3.0.2
Obsolete (compiler warning) in 3.0.1
Obsolete (compiler warning) in 3.0.0
Obsolete (compiler warning) in 2.10.11
Obsolete (compiler warning) in 2.10.5
Obsolete (compiler warning) in 2.10.0
Obsolete (compiler warning) in 2.10
Obsolete (compiler warning) in 2.9.5
Obsolete (compiler warning) in 2.9
Obsolete (compiler warning) in 2.8.5
Obsolete (compiler warning) in 2.8
Obsolete (compiler warning) in 2.7.5
Obsolete (compiler warning) in 2.7
Obsolete (compiler warning) in 2.6
Obsolete (compiler warning) in 2.5
Obsolete (compiler warning) in 2.4