AFElementTemplate.NamingPattern Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The naming pattern used when creating elements from this template.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public string NamingPattern { get; set; }
Public Property NamingPattern As String Get Set Dim instance As AFElementTemplate Dim value As String value = instance.NamingPattern instance.NamingPattern = value
public: property String^ NamingPattern { String^ get (); void set (String^ value); }
member NamingPattern : string with get, set
Property Value
Type: StringReturns the naming pattern used when creating elements from this template.
Remarks
If this property is not , then it is used when creating
new elements from this template and the default name of '*' is specified.
For a AFNotificationTemplate, this naming pattern will also be used when
creating the name of the automatically generated AFNotification
when AutoCreateNotificationsEnabled is enabled.
See AFNameSubstitution for more information about what is allowed
for the naming pattern.
| The name generated by this naming pattern must be less than the maximum name length of 260 characters. |