INamedComponentCollection.GetNewID Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetNewID() |
Generates a new unique ID for the component in the collection. |
GetNewID(String) |
Generates a new unique ID for a component in the collection that starts with the specified prefix. |
GetNewID()
Generates a new unique ID for the component in the collection.
public string GetNewID ();
abstract member GetNewID : unit -> string
Public Function GetNewID () As String
Returns
A String with the new ID.
Applies to
GetNewID(String)
Generates a new unique ID for a component in the collection that starts with the specified prefix.
public string GetNewID (string prefix);
abstract member GetNewID : string -> string
Public Function GetNewID (prefix As String) As String
Parameters
- prefix
- String
The prefix for the ID
Returns
A String with the new ID.