The Id type exposes the following members.

ToggleMethods

Type NameDescription
Public methodStatic memberAsIdOrNull
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).
Public methodCompareToOverloaded.
Public methodStatic memberCreateId
Generates an ID with an IETF Version 4 UUID value using the runtime System.Guid.NewGuid() method.
Public methodStatic memberCreateSequentialId
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.
Public methodEqualsOverloaded.
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBytes
Returns a copy of this ID as an array of bytes.
Public methodGetHashCode
Returns the hashcode for this ID.
(Overrides Object..::.GetHashCode()()().)
Public methodGetObjectData
This method is exposed to satisfy the ISerializable interface.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsId
Determines if a String is an ID or not.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns the String representation of this ID.
(Overrides Object..::.ToString()()().)

ToggleOperators

Type NameDescription
Public operatorStatic memberEquality
Determines whether two specified Id objects are the same.
Public operatorStatic memberInequality
Determines whether two specified Id objects are not the same.

ToggleSee Also