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

AF SDK Reference

AFNotificationContents.Add Method (String)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFNotificationContents.Add Method (String)
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: AFNotificationContent
Returns 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.

Version Information

AFSDK


See Also

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