Creates a unique ID similar to that created by CreateNonRandomId, but instead of an underscore, the supplied prefix is used.
Namespace: Microsoft.IdentityModel
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim prefix As String
Dim returnValue As String

returnValue = UniqueId.CreateUniqueId(prefix)

Syntax

Visual Basic
Public Shared Function CreateUniqueId ( _
		prefix As String _
) As String
C#
public static string CreateUniqueId (
		string prefix
)
C++
public:
static String^ CreateUniqueId (
		String^ prefix
)
J#
public static String CreateUniqueId (
		String prefix
)
JScript
public static function CreateUniqueId (
		prefix : String
) : String

Parameters

prefix

The prefix for the unique ID.

Return Value

The unique ID.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also