Struct TimeUuid
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Dse
Assembly: Dse.dll
Syntax
public struct TimeUuid : IEquatable<TimeUuid>, IComparable<TimeUuid>
Methods
CompareTo(TimeUuid)
Compares the current TimeUuid with another TimeUuid based on the time representation of this instance.
Declaration
public int CompareTo(TimeUuid other)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Equals(TimeUuid)
Returns a value indicating whether this instance and a specified TimeUuid object represent the same value.
Declaration
public bool Equals(TimeUuid other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Returns a value indicating whether this instance and a specified TimeUuid object represent the same value.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
GetDate()
Gets the DateTimeOffset representation of this instance
Declaration
public DateTimeOffset GetDate()
Returns
Type |
Description |
System.DateTimeOffset |
|
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
Max(DateTimeOffset)
Returns the biggest possible type 1 uuid with the provided Date.
Declaration
public static TimeUuid Max(DateTimeOffset date)
Parameters
Type |
Name |
Description |
System.DateTimeOffset |
date |
|
Returns
Min(DateTimeOffset)
Returns the smaller possible type 1 uuid with the provided date.
Declaration
public static TimeUuid Min(DateTimeOffset date)
Parameters
Type |
Name |
Description |
System.DateTimeOffset |
date |
|
Returns
NewId()
Initializes a new instance of the TimeUuid structure, using a random node id and clock sequence and the current date time
Declaration
public static TimeUuid NewId()
Returns
NewId(Byte[], Byte[], DateTimeOffset)
Initializes a new instance of the TimeUuid structure
Declaration
public static TimeUuid NewId(byte[] nodeId, byte[] clockId, DateTimeOffset date)
Parameters
Type |
Name |
Description |
System.Byte[] |
nodeId |
|
System.Byte[] |
clockId |
|
System.DateTimeOffset |
date |
|
Returns
NewId(DateTimeOffset)
Initializes a new instance of the TimeUuid structure, using a random node id and clock sequence
Declaration
public static TimeUuid NewId(DateTimeOffset date)
Parameters
Type |
Name |
Description |
System.DateTimeOffset |
date |
|
Returns
Parse(String)
Converts the string representation of a time-based uuid (v1) to the equivalent
TimeUuid structure.
Declaration
public static TimeUuid Parse(string input)
Parameters
Type |
Name |
Description |
System.String |
input |
|
Returns
ToByteArray()
Returns a 16-element byte array that contains the value of this instance.
Declaration
public byte[] ToByteArray()
Returns
Type |
Description |
System.Byte[] |
|
ToGuid()
Gets the Guid representation of the Id
Declaration
Returns
Type |
Description |
System.Guid |
|
ToString()
Returns a string representation of the value of this instance in registry format.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
ToString(String)
Returns a string representation
Declaration
public string ToString(string format)
Parameters
Type |
Name |
Description |
System.String |
format |
|
Returns
Type |
Description |
System.String |
|
Returns a string representation
Declaration
public string ToString(string format, IFormatProvider provider)
Parameters
Type |
Name |
Description |
System.String |
format |
|
System.IFormatProvider |
provider |
|
Returns
Type |
Description |
System.String |
|
Operators
Equality(TimeUuid, TimeUuid)
Declaration
public static bool operator ==(TimeUuid id1, TimeUuid id2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implicit(TimeUuid to Guid)
Declaration
public static implicit operator Guid(TimeUuid value)
Parameters
Returns
Type |
Description |
System.Guid |
|
Implicit(Guid to TimeUuid)
Declaration
public static implicit operator TimeUuid(Guid value)
Parameters
Type |
Name |
Description |
System.Guid |
value |
|
Returns
Inequality(TimeUuid, TimeUuid)
Declaration
public static bool operator !=(TimeUuid id1, TimeUuid id2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>
System.IComparable<T>