System.Guid
Summary
Represents a globally unique identifier (GUID).
Defined in Guid.js
Constructors
System.Guid(<String> g)
Initializes a new instance of the Guid class using the value represented by the specified string.
Parameters
g - A String that contains a GUID in the following format: Groups of 8, 4, 4, 4, and 12 digits with hyphens between the groups (dddddddd-dddd-dddd-dddd-dddddddddddd).
Methods
-
Int CompareTo(<Guid> value)
Compares this instance to a specified Guid object and returns an indication of their relative values.
Parameters
value - A Guid object to compare to this instance.
Return Values
A signed number indicating the relative values of this instance and value.
-
Boolean Equals(<Guid> g)
Returns a value indicating whether this instance and a specified Guid object represent the same value.
Parameters
g - A Guid object to compare to this instance.
Return Values
True if g is equal to this instance; otherwise, false.
-
String ToString()
Returns a String representation of the value of this instance of the Guid class.
Return Values
A String formatted in this pattern: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx where the value of the GUID is represented as a series of lower-case hexadecimal digits in groups of 8, 4, 4, 4, and 12 digits and separated by hyphens. An example of a return value is "382c74c3-721d-4f34-80e5-57657b6cbc27".
-
static Guid NewGuid()
Generates a new globally unique identifier (GUID).
Return Values
A new globally unique identifier (GUID).