Condividi tramite


UniqueId Class

Definition

Generates unique IDs.

public static class UniqueId
type UniqueId = class
Public Class UniqueId
Inheritance
UniqueId

Methods

CreateRandomId()

Creates a unique, random ID suitable for use in an xml:id field. The value is hard to guess and unique.

CreateRandomId(String)

Creates a unique, random ID similar to that created by CreateRandomId, but instead of an underscore, the supplied prefix is used.

CreateRandomUri()

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.

CreateUniqueId()

Creates a unique ID suitable for use in an xml:id field. The value is not hard to guess but is unique.

CreateUniqueId(String)

Creates a unique ID similar to that created by CreateNonRandomId, but instead of an underscore, the supplied prefix is used.

Applies to