The Id type exposes the following members.
Methods
Type | Name | Description |
---|---|---|
![]() ![]() | AsIdOrNull |
Returns an Id if the passed string is in GUID format. A valid
string consists of optional whitespace, an optional left brace({), followed
by required 8 hexadecimal characters, a dash, 4 hexadecimal characters,
a dash, 4 hexadecimal characters, a dash, 4 hexadecimal characters, a dash,
and 12 hexadecimal characters, then finally an optional right brace(})
followed by whitespace. The braces must either both be present or both be omitted.
For example: {1234abcd-56ef-7a89-9fe8-7d65cd43ba21}
If the input string does not conform to this format, the
method returns null.
This method provides an alternative to calling
IsId(string) followed conditionally by new Id(string).
|
![]() | CompareTo | Overloaded. |
![]() ![]() | CreateId |
Generates an ID with an IETF Version 4 UUID value using the runtime System.Guid.NewGuid() method.
|
![]() ![]() | CreateSequentialId | Generates an ID that has a time- and counter-based portion that is combined with a random portion
in such a way that consecutively created IDs are sequential (monotonic) per the natural ordering
applied by the underlying database.
|
![]() | Equals | Overloaded. |
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetBytes |
Returns a copy of this ID as an array of bytes.
|
![]() | GetHashCode |
Returns the hashcode for this ID.
(Overrides Object..::.GetHashCode()()().) |
![]() | GetObjectData |
This method is exposed to satisfy the ISerializable interface.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | IsId |
Determines if a String is an ID or not.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString |
Returns the String representation of this ID.
(Overrides Object..::.ToString()()().) |
Operators
Type | Name | Description |
---|---|---|
![]() ![]() | Equality |
Determines whether two specified Id objects are the same.
|
![]() ![]() | Inequality |
Determines whether two specified Id objects are not the same.
|