Creates a unique, random ID suitable for use as a URI. The value is hard to guess and unique. The URI is in the urn:uuid: namespace.
Namespace: Microsoft.IdentityModel
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim returnValue As String

returnValue = UniqueId.CreateRandomUri

Syntax

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

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