Creates a unique ID suitable for use in
an xml:id field. The value is not hard to guess but is
unique.
Namespace: Microsoft.IdentityModel
Assembly: Microsoft.IdentityModel (in
microsoft.identitymodel.dll)
Usage
Visual Basic |
Dim returnValue As String
returnValue = UniqueId.CreateUniqueId
|
Syntax
Visual Basic |
Public Shared Function CreateUniqueId As String
|
C# |
public static string CreateUniqueId ()
|
C++ |
public:
static String^ CreateUniqueId ()
|
J# |
public static String CreateUniqueId ()
|
JScript |
public static function CreateUniqueId () : String
|
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