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

AF SDK Reference

AFNotificationContacts.Add Method (AFContact, String)

AFNotificationContacts.Add Method (AFContact, String)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFNotificationContacts.Add Method (AFContact, String)
The Add method creates a new AFNotificationContact with an associated AFContact and adds it to the collection.

Namespace:  OSIsoft.AF.Notification
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public AFNotificationContact Add(
	AFContact contact,
	string name
)
Public Function Add ( 
	contact As AFContact,
	name As String
) As AFNotificationContact

Dim instance As AFNotificationContacts
Dim contact As AFContact
Dim name As String
Dim returnValue As AFNotificationContact

returnValue = instance.Add(contact, name)
public:
AFNotificationContact^ Add(
	AFContact^ contact, 
	String^ name
)
member Add : 
        contact : AFContact * 
        name : string -> AFNotificationContact 

Parameters

contact
Type: OSIsoft.AFAFContact
The AFContact that is associated with this notification contact.
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. If the name is or empty, then the name of the specified contact is used. See the ValidateName(String, String) method for a description of what is valid when setting the name of the object.

Return Value

Type: AFNotificationContact
Returns the newly created object that was added to the collection.

Remarks

The new AFNotificationContact is created with an associated AFContact and adds it to the collection.

Version Information

AFSDK


See Also

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