AFElementTemplate.GetAllNotificationRuleTemplates Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Gets the list of AFNotificationRuleTemplate objects for this template and all base templates.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFNamedCollectionList<AFNotificationRuleTemplate> GetAllNotificationRuleTemplates()
Public Function GetAllNotificationRuleTemplates As AFNamedCollectionList(Of AFNotificationRuleTemplate) Dim instance As AFElementTemplate Dim returnValue As AFNamedCollectionList(Of AFNotificationRuleTemplate) returnValue = instance.GetAllNotificationRuleTemplates()
public: AFNamedCollectionList<AFNotificationRuleTemplate^>^ GetAllNotificationRuleTemplates()
member GetAllNotificationRuleTemplates : unit -> AFNamedCollectionList<AFNotificationRuleTemplate>
Return Value
Type: AFNamedCollectionListAFNotificationRuleTemplateReturns the list of AFNotificationRuleTemplate objects for this template and all base templates.
Remarks
This is the list of AFNotificationRuleTemplate objects that would be defined for an AFBaseElement
created from the template. If you want to generate a unique name for a new AFNotificationRuleTemplate,
you may use the output from this method in GenerateUniqueName(String, IAFList).