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

AF SDK Reference

AFObject.GenerateUniqueName Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFObject.GenerateUniqueName Method
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: String
Returns the new name that is unique based upon the items in the specified list.

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

See Also

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