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

AF SDK Reference

AFNotificationContactTemplate.FindNotificationContactTemplatesByContact Method

AFNotificationContactTemplate.FindNotificationContactTemplatesByContact Method

  • Last UpdatedNov 18, 2025
  • 3 minute read
AFNotificationContactTemplate.FindNotificationContactTemplatesByContact Method

Note: This API is now obsolete.

Performs a search to retrieve a collection of all the AFNotificationContactTemplate objects that have the specified AFContact configured to receive the notification.

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 'AFNotificationContactTemplateSearch' class using the 'Contact' filter.")]
public static AFNamedCollectionList<AFNotificationContactTemplate> FindNotificationContactTemplatesByContact(
	AFContact target,
	AFSortField sortField,
	AFSortOrder sortOrder,
	int maxCount
)
<BrowsableAttribute(false)>
<ObsoleteAttribute("This method has been replaced by the 'AFNotificationContactTemplateSearch' class using the 'Contact' filter.")>
Public Shared Function FindNotificationContactTemplatesByContact ( 
	target As AFContact,
	sortField As AFSortField,
	sortOrder As AFSortOrder,
	maxCount As Integer
) As AFNamedCollectionList(Of AFNotificationContactTemplate)

Dim target As AFContact
Dim sortField As AFSortField
Dim sortOrder As AFSortOrder
Dim maxCount As Integer
Dim returnValue As AFNamedCollectionList(Of AFNotificationContactTemplate)

returnValue = AFNotificationContactTemplate.FindNotificationContactTemplatesByContact(target, 
	sortField, sortOrder, maxCount)
public:
[BrowsableAttribute(false)]
[ObsoleteAttribute(L"This method has been replaced by the 'AFNotificationContactTemplateSearch' class using the 'Contact' filter.")]
static AFNamedCollectionList<AFNotificationContactTemplate^>^ FindNotificationContactTemplatesByContact(
	AFContact^ target, 
	AFSortField sortField, 
	AFSortOrder sortOrder, 
	int maxCount
)
[<BrowsableAttribute(false)>]
[<ObsoleteAttribute("This method has been replaced by the 'AFNotificationContactTemplateSearch' class using the 'Contact' filter.")>]
static member FindNotificationContactTemplatesByContact : 
        target : AFContact * 
        sortField : AFSortField * 
        sortOrder : AFSortOrder * 
        maxCount : int -> AFNamedCollectionList<AFNotificationContactTemplate> 

Parameters

target
Type: OSIsoft.AFAFContact
The AFContact that is the target of the desired AFNotificationContactTemplate objects.
sortField
Type: OSIsoft.AFAFSortField
The field or property of the object used to sort the returned collection.
sortOrder
Type: OSIsoft.AFAFSortOrder
The order that the returned collection is sorted.
maxCount
Type: SystemInt32
The maximum number of objects to be returned.

Return Value

Type: AFNamedCollectionListAFNotificationContactTemplate
Returns a collection containing the specified page of AFNotificationContactTemplate objects which have the specified target.

Remarks

An AFNotificationContactTemplate is returned in the collection if the specified AFContact is configured to receive the notification.

Version Information

AFSDK

Supported in: 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5, 2.4
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

See Also

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