AFNotificationContents.Add Method (String)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Creates a new AFAttribute and a new AFNotificationContent using
the specified name.
Namespace: OSIsoft.AF.Notification
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFNotificationContent Add( string name )
Public Function Add ( name As String ) As AFNotificationContent Dim instance As AFNotificationContents Dim name As String Dim returnValue As AFNotificationContent returnValue = instance.Add(name)
public: AFNotificationContent^ Add( String^ name )
member Add : name : string -> AFNotificationContent
Parameters
- name
- Type: SystemString
A string containing a path name of an AFAttribute that is relative to the Notification. For example 'Attribute1|Attribute2'. See the ValidateName(String, String) method for a description of what is valid when setting the name of the object.
Return Value
Type: AFNotificationContentReturns the newly created AFNotificationContent object.
Remarks
If an AFAttribute with the specified name does not exist, then a
new AFAttribute will be created. When using a path to a sub-attribute,
the sub-attribute must already exist. Sub-attributes will not automatically be
created.