AFNotifications.Add Method (String)
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
Note: This API is now obsolete.
The Add method creates a new object and adds it to the collection.
Namespace: OSIsoft.AF.Notification
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
[BrowsableAttribute(false)] [ObsoleteAttribute("This method has been replaced by the constructor 'AFNotification(AFDatabase,string)'.")] public AFNotification Add( string name )
<BrowsableAttribute(false)> <ObsoleteAttribute("This method has been replaced by the constructor 'AFNotification(AFDatabase,string)'.")> Public Function Add ( name As String ) As AFNotification Dim instance As AFNotifications Dim name As String Dim returnValue As AFNotification returnValue = instance.Add(name)
public: [BrowsableAttribute(false)] [ObsoleteAttribute(L"This method has been replaced by the constructor 'AFNotification(AFDatabase,string)'.")] AFNotification^ Add( String^ name )
[<BrowsableAttribute(false)>] [<ObsoleteAttribute("This method has been replaced by the constructor 'AFNotification(AFDatabase,string)'.")>] member Add : name : string -> AFNotification
Parameters
- 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. See the ValidateName(String, String) method for a description of what is valid when setting the name of the object.
Return Value
Type: AFNotificationReturns the newly created object that was added to the collection.
Remarks
The new object will be created with the specified name. All other
properties of the object will be set to their default value.
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