Struct TimeUuid
Assembly: Cassandra.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
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
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 |
object |
obj |
|
Returns
Overrides
GetDate()
Gets the DateTimeOffset representation of this instance
Declaration
public DateTimeOffset GetDate()
Returns
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Overrides
Max(DateTimeOffset)
Returns the biggest possible type 1 uuid with the provided Date.
Declaration
public static TimeUuid Max(DateTimeOffset date)
Parameters
Returns
Min(DateTimeOffset)
Returns the smaller possible type 1 uuid with the provided date.
Declaration
public static TimeUuid Min(DateTimeOffset date)
Parameters
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
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
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 |
string |
input |
|
Returns
ToByteArray()
Returns a 16-element byte array that contains the value of this instance.
Declaration
public byte[] ToByteArray()
Returns
ToGuid()
Gets the Guid representation of the Id
Declaration
Returns
ToString()
Returns a string representation of the value of this instance in registry format.
Declaration
public override string ToString()
Returns
Overrides
ToString(string)
Returns a string representation
Declaration
public string ToString(string format)
Parameters
Type |
Name |
Description |
string |
format |
|
Returns
Returns a string representation
Declaration
public string ToString(string format, IFormatProvider provider)
Parameters
Returns
Operators
operator ==(TimeUuid, TimeUuid)
Declaration
public static bool operator ==(TimeUuid id1, TimeUuid id2)
Parameters
Returns
implicit operator Guid(TimeUuid)
Declaration
public static implicit operator Guid(TimeUuid value)
Parameters
Returns
implicit operator TimeUuid(Guid)
Declaration
public static implicit operator TimeUuid(Guid value)
Parameters
Type |
Name |
Description |
Guid |
value |
|
Returns
operator !=(TimeUuid, TimeUuid)
Declaration
public static bool operator !=(TimeUuid id1, TimeUuid id2)
Parameters
Returns
Implements