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

AF SDK Reference

AFNameSubstitution Class

  • Last UpdatedNov 18, 2025
  • 3 minute read
AFNameSubstitution Class
This class provides support for the name substitution used with setting the names of objects.

Inheritance Hierarchy

SystemObject
  OSIsoft.AFAFNameSubstitution

Namespace:  OSIsoft.AF
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public static class AFNameSubstitution
Public NotInheritable Class AFNameSubstitution

You do not need to declare an instance of a static class in order to access its members.
public ref class AFNameSubstitution abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type AFNameSubstitution =  class end

The AFNameSubstitution type exposes the following members.

Methods

  NameDescription
Public methodStatic member
GetSubstitutionList
Gets the list of supported name substitutions.
Public methodStatic member
ResolveName(AFObject, String, IFormatProvider)
Resolves the substitution fields within the new name for the specified object.
Public methodStatic member
ResolveName(AFObject, IAFDataProvider, String, IFormatProvider)
Resolves the substitution fields within the new name for the specified object and IAFDataProvider.
Public methodStatic member
ResolveName(AFObject, Object, IAFDataProvider, String, IFormatProvider)
Resolves the substitution fields within the new name for the specified object, time context, and IAFDataProvider.

Remarks

Name substitution is used when resolving the naming pattern specified in the AFElementTemplateNamingPattern property. The ResolveName method can be used to resolve object names when setting an object's Name property. See AFNameSubstitutionType for description of the substitution fields.

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