AFNotificationContactTemplate.FindNotificationContactTemplatesByDatabase Method
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
Note: This API is now obsolete.
Retrieves AFNotificationContactTemplate objects referenced within
the AFDatabase.
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 database as the 'Root' filter.")] public static AFNamedCollectionList<AFNotificationContactTemplate> FindNotificationContactTemplatesByDatabase( AFDatabase database, AFSortField sortField, AFSortOrder sortOrder, int maxCount )
<BrowsableAttribute(false)> <ObsoleteAttribute("This method has been replaced by the 'AFNotificationContactTemplateSearch' class using the database as the 'Root' filter.")> Public Shared Function FindNotificationContactTemplatesByDatabase ( database As AFDatabase, sortField As AFSortField, sortOrder As AFSortOrder, maxCount As Integer ) As AFNamedCollectionList(Of AFNotificationContactTemplate) Dim database As AFDatabase Dim sortField As AFSortField Dim sortOrder As AFSortOrder Dim maxCount As Integer Dim returnValue As AFNamedCollectionList(Of AFNotificationContactTemplate) returnValue = AFNotificationContactTemplate.FindNotificationContactTemplatesByDatabase(database, sortField, sortOrder, maxCount)
public: [BrowsableAttribute(false)] [ObsoleteAttribute(L"This method has been replaced by the 'AFNotificationContactTemplateSearch' class using the database as the 'Root' filter.")] static AFNamedCollectionList<AFNotificationContactTemplate^>^ FindNotificationContactTemplatesByDatabase( AFDatabase^ database, AFSortField sortField, AFSortOrder sortOrder, int maxCount )
[<BrowsableAttribute(false)>] [<ObsoleteAttribute("This method has been replaced by the 'AFNotificationContactTemplateSearch' class using the database as the 'Root' filter.")>] static member FindNotificationContactTemplatesByDatabase : database : AFDatabase * sortField : AFSortField * sortOrder : AFSortOrder * maxCount : int -> AFNamedCollectionList<AFNotificationContactTemplate>
Parameters
- database
- Type: OSIsoft.AFAFDatabase
The AFDatabase in which to search for the requested 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: AFNamedCollectionListAFNotificationContactTemplateReturns the collection of AFNotificationContactTemplate objects which are referenced in the specified database.
Version Information
AFSDK
Supported in: 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5, 2.4Obsolete (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