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

AF SDK Reference

AFNotification.SetNotificationContact Method (AFContact, String)

AFNotification.SetNotificationContact Method (AFContact, String)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFNotification.SetNotificationContact Method (AFContact, String)

Note: This API is now obsolete.

The SetNotificationContact method sets the NotificationContact property to a newly created AFNotificationContact using the specified AFContact and name.

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

Syntax

[BrowsableAttribute(false)]
[ObsoleteAttribute("Replace with the NotificationContacts.Add method.")]
public void SetNotificationContact(
	AFContact contact,
	string name
)
<BrowsableAttribute(false)>
<ObsoleteAttribute("Replace with the NotificationContacts.Add method.")>
Public Sub SetNotificationContact ( 
	contact As AFContact,
	name As String
)

Dim instance As AFNotification
Dim contact As AFContact
Dim name As String

instance.SetNotificationContact(contact, 
	name)
public:
[BrowsableAttribute(false)]
[ObsoleteAttribute(L"Replace with the NotificationContacts.Add method.")]
void SetNotificationContact(
	AFContact^ contact, 
	String^ name
)
[<BrowsableAttribute(false)>]
[<ObsoleteAttribute("Replace with the NotificationContacts.Add method.")>]
member SetNotificationContact : 
        contact : AFContact * 
        name : string -> unit 

Parameters

contact
Type: OSIsoft.AFAFContact
The AFContact that is associated with this notification contact.
name
Type: SystemString
The name for the new object. 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.

Version Information

AFSDK

Obsolete (compiler warning) in 3.1.1
Obsolete (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

See Also

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