Creates a unique, random ID similar to
that created by CreateRandomId, 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.CreateRandomId(prefix)
|
Syntax
Visual Basic |
Public Shared Function CreateRandomId ( _
prefix As String _
) As String
|
C# |
public static string CreateRandomId (
string prefix
)
|
C++ |
public:
static String^ CreateRandomId (
String^ prefix
)
|
J# |
public static String CreateRandomId (
String prefix
)
|
JScript |
public static function CreateRandomId (
prefix : String
) : String
|
Parameters
- prefix
-
The prefix for the random ID.
Return Value
The random 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