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

AF SDK Reference

AFElementTemplate.NamingPattern Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFElementTemplate.NamingPattern Property
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: String
Returns 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.
Important note Important
The name generated by this naming pattern must be less than the maximum name length of 260 characters.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6

See Also

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