AFObject.GenerateUniqueName Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Generate a unique name for the items in the specified list.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static string GenerateUniqueName( string name, IAFList items )
Public Shared Function GenerateUniqueName ( name As String, items As IAFList ) As String Dim name As String Dim items As IAFList Dim returnValue As String returnValue = AFObject.GenerateUniqueName(name, items)
public: static String^ GenerateUniqueName( String^ name, IAFList^ items )
static member GenerateUniqueName : name : string * items : IAFList -> string
Parameters
- name
- Type: SystemString
The base name for new unique name for a new item in the specified list. A unique name will always be generated even when the specified name does not end in an asterisk (*). - items
- Type: OSIsoft.AFIAFList
The existing items in the list that are used to generate a new unique name.
Return Value
Type: StringReturns the new name that is unique based upon the items in the specified list.