• DataStax Enterprise C# Driver API Documentation

    Show / Hide Table of Contents
    • Dse
      • AggregateMetadata
      • AlreadyExistsException
      • AtomicMonotonicTimestampGenerator
      • AtomicMonotonicWinApiTimestampGenerator
      • AuthenticationException
      • BatchStatement
      • BatchType
      • BigIntegerTypeAdapter
      • BoundStatement
      • Builder
      • BusyPoolException
      • CassandraConnectionStringBuilder
      • ClientOptions
      • Cluster
      • ColumnDesc
      • ColumnTypeCode
      • CompressionType
      • Configuration
      • ConsistencyLevel
      • ConstantReconnectionPolicy
      • ConstantSpeculativeExecutionPolicy
      • CqlColumn
      • CustomColumnInfo
      • DataCollectionMetadata
      • DataCollectionMetadata.SortOrder
      • DCAwareRoundRobinPolicy
      • DecimalTypeAdapter
      • DefaultRetryPolicy
      • Diagnostics
      • DowngradingConsistencyRetryPolicy
      • DriverException
      • DriverInternalError
      • DseCluster
      • DseClusterBuilder
      • DseConfiguration
      • DseLoadBalancingPolicy
      • Duration
      • DynamicCompositeTypeAdapter
      • EC2MultiRegionTranslator
      • ExecutionException
      • ExecutionInfo
      • ExponentialReconnectionPolicy
      • Extensions
      • FallthroughRetryPolicy
      • FixedReconnectionPolicy
      • FunctionFailureException
      • FunctionMetadata
      • Host
      • HostDistance
      • HostsEventArgs
      • HostsEventArgs.Kind
      • HostsEventHandler
      • IAddressTranslator
      • IAuthenticator
      • IAuthProvider
      • IAuthProviderNamed
      • ICluster
      • IColumnInfo
      • IdempotenceAwareRetryPolicy
      • IDseCluster
      • IDseSession
      • IExecutionProfile
      • IExecutionProfileBuilder
      • IExecutionProfileOptions
      • IExtendedRetryPolicy
      • IFrameCompressor
      • IInitializer
      • ILoadBalancingPolicy
      • IndexMetadata
      • IndexMetadata.IndexKind
      • InvalidConfigurationInQueryException
      • InvalidQueryException
      • InvalidTypeException
      • IReconnectionPolicy
      • IReconnectionSchedule
      • IRetryPolicy
      • IsBootstrappingException
      • ISession
      • ISessionState
      • ISpeculativeExecutionPlan
      • ISpeculativeExecutionPolicy
      • IStatement
      • ITimestampGenerator
      • ITypeAdapter
      • KeyspaceMetadata
      • KeyType
      • ListColumnInfo
      • LocalDate
      • LocalTime
      • Logger
      • LoggingRetryPolicy
      • MapColumnInfo
      • MaterializedViewMetadata
      • Metadata
      • MetadataSyncOptions
      • MetricsExtensions
      • MonitorReportingOptions
      • NoHostAvailableException
      • NoneAuthProvider
      • NoSpeculativeExecutionPolicy
      • NullTypeAdapter
      • OperationTimedOutException
      • OverloadedException
      • PlainTextAuthProvider
      • Policies
      • PoolingOptions
      • PreparedQueryNotFoundException
      • PreparedStatement
      • PreparedStatementIdMismatchException
      • ProtocolErrorException
      • ProtocolOptions
      • ProtocolVersion
      • QueryExecutionException
      • QueryOptions
      • QueryProtocolOptions
      • QueryProtocolOptions.QueryFlags
      • QueryTimeoutException
      • QueryTrace
      • QueryTrace.Event
      • QueryValidationException
      • ReadFailureException
      • ReadTimeoutException
      • RegularStatement
      • ReplicationStrategies
      • RequestInvalidException
      • RetryDecision
      • RetryDecision.RetryDecisionType
      • RetryLoadBalancingPolicy
      • RetryLoadBalancingPolicyEventArgs
      • RoundRobinPolicy
      • RoutingKey
      • Row
      • RowSet
      • RowSetMetadata
      • SchemaChangedEventArgs
      • SchemaChangedEventArgs.Kind
      • SchemaChangedEventHandler
      • ServerErrorException
      • Session
      • SetColumnInfo
      • SimpleStatement
      • SocketOptions
      • SSLOptions
      • Statement
      • SyntaxError
      • TableColumn
      • TableMetadata
      • TableOptions
      • TimeUuid
      • TokenAwarePolicy
      • ToManyConnectionsPerHost
      • TraceRetrievalException
      • TruncateException
      • TupleColumnInfo
      • TypeAdapters
      • UdtColumnInfo
      • UdtMap
      • UdtMap<T>
      • UdtMappingDefinitions
      • UnauthorizedException
      • UnavailableException
      • Unset
      • WriteFailureException
      • WriteTimeoutException
    • Dse.AppMetrics
      • DriverAppMetricsOptions
    • Dse.AppMetrics.MetricTypes
      • IAppMetricsCounter
      • IAppMetricsGauge
      • IAppMetricsMeter
      • IAppMetricsMetric
      • IAppMetricsTimer
    • Dse.AppMetrics.MetricValues
      • IAppMetricsHistogramValue
      • IAppMetricsMeterValue
      • IAppMetricsMetricWithValue<T>
      • IAppMetricsTimerValue
    • Dse.Auth
      • DseGssapiAuthProvider
      • DsePlainTextAuthProvider
    • Dse.Auth.Sspi
      • SspiException
    • Dse.Data
      • CqlBatchTransaction
      • CqlCommand
      • CqlConnection
      • CqlDataAdapter
      • CqlParameter
      • CqlParameterCollection
      • CqlProviderFactory
      • CqlReader
    • Dse.Data.Linq
      • AllowFilteringAttribute
      • Batch
      • ClusteringKeyAttribute
      • ColumnAttribute
      • CompactStorageAttribute
      • CounterAttribute
      • CqlArgumentException
      • CqlCommand
      • CqlConditionalCommand<TEntity>
      • CqlDelete
      • CqlFunction
      • CqlInsert<TEntity>
      • CqlLinqNotSupportedException
      • CqlOperator
      • CqlQuery<TEntity>
      • CqlQueryBase<TEntity>
      • CqlQueryExtensions
      • CqlQuerySingleElement<TEntity>
      • CqlScalar<TEntity>
      • CqlToken
      • CqlUpdate
      • IgnoreAttribute
      • ITable
      • PartitionKeyAttribute
      • SecondaryIndexAttribute
      • SessionExtensions
      • StaticColumnAttribute
      • Table<TEntity>
      • TableAttribute
      • TableType
    • Dse.Geometry
      • GeometryBase
      • LineString
      • Point
      • Polygon
    • Dse.Graph
      • Edge
      • Element
      • GraphNode
      • GraphOptions
      • GraphResultSet
      • GraphStatement
      • IEdge
      • IElement
      • IGraphNode
      • IGraphStatement
      • IPath
      • IProperty
      • IVertex
      • IVertexProperty
      • Path
      • SimpleGraphStatement
      • Vertex
    • Dse.Mapping
      • AppliedInfo<T>
      • ColumnMap
      • Cql
      • CqlQueryOptions
      • IColumnDefinition
      • ICqlBatch
      • ICqlQueryAsyncClient
      • ICqlQueryClient
      • ICqlWriteAsyncClient
      • ICqlWriteClient
      • IMapper
      • IPage<T>
      • ITypeDefinition
      • Map<TPoco>
      • Mapper
      • MappingConfiguration
      • Mappings
      • SortOrder
    • Dse.Mapping.Attributes
      • ClusteringKeyAttribute
      • ColumnAttribute
      • CounterAttribute
      • FrozenAttribute
      • FrozenKeyAttribute
      • FrozenValueAttribute
      • IgnoreAttribute
      • PartitionKeyAttribute
      • SecondaryIndexAttribute
      • StaticColumnAttribute
      • TableAttribute
    • Dse.Mapping.TypeConversion
      • DefaultTypeConverter
      • EnumStringMapper<T>
      • NullableEnumStringMapper<T>
      • TypeConverter
    • Dse.Mapping.Utils
      • MemberInfoExtensions
    • Dse.Metrics
      • DriverMetricsOptions
      • IDriverMetrics
      • IMetric
      • IMetricsRegistry<TMetric>
      • NodeMetric
      • NodeMetric.Counters
      • NodeMetric.Gauges
      • NodeMetric.Meters
      • NodeMetric.Timers
      • SessionMetric
      • SessionMetric.Counters
      • SessionMetric.Gauges
      • SessionMetric.Meters
      • SessionMetric.Timers
    • Dse.Metrics.Abstractions
      • IDriverCounter
      • IDriverGauge
      • IDriverMeter
      • IDriverMetric
      • IDriverMetricsProvider
      • IDriverTimer
    • Dse.Search
      • DateRange
      • DateRangeBound
      • DateRangePrecision
    • Dse.Serialization
      • CustomTypeSerializer<T>
      • TypeSerializer
      • TypeSerializer<T>
      • TypeSerializerDefinitions
      • UdtSerializer

    Struct TimeUuid

    Represents a v1 uuid

    Implements
    System.IEquatable<TimeUuid>
    System.IComparable<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
    Type Name Description
    TimeUuid other
    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
    Type Name Description
    TimeUuid other
    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
    Type Description
    TimeUuid

    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
    Type Description
    TimeUuid

    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
    Type Description
    TimeUuid

    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
    Type Description
    TimeUuid

    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
    Type Description
    TimeUuid

    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
    Type Description
    TimeUuid

    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
    public Guid ToGuid()
    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

    ToString(String, IFormatProvider)

    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
    Type Name Description
    TimeUuid id1
    TimeUuid id2
    Returns
    Type Description
    System.Boolean

    Implicit(TimeUuid to Guid)

    From TimeUuid to Guid

    Declaration
    public static implicit operator Guid(TimeUuid value)
    Parameters
    Type Name Description
    TimeUuid value
    Returns
    Type Description
    System.Guid

    Implicit(Guid to TimeUuid)

    From Guid to TimeUuid

    Declaration
    public static implicit operator TimeUuid(Guid value)
    Parameters
    Type Name Description
    System.Guid value
    Returns
    Type Description
    TimeUuid

    Inequality(TimeUuid, TimeUuid)

    Declaration
    public static bool operator !=(TimeUuid id1, TimeUuid id2)
    Parameters
    Type Name Description
    TimeUuid id1
    TimeUuid id2
    Returns
    Type Description
    System.Boolean

    Implements

    System.IEquatable<T>
    System.IComparable<T>
    Back to top © DataStax, All rights reserved.