ערוך

שתף באמצעות


SequenceNumber Struct

Definition

Represents a sequence number assigned to a log record in a record sequence.

public value class SequenceNumber : IComparable<System::IO::Log::SequenceNumber>
[System.Serializable]
public struct SequenceNumber : IComparable<System.IO.Log.SequenceNumber>
[<System.Serializable>]
type SequenceNumber = struct
Public Structure SequenceNumber
Implements IComparable(Of SequenceNumber)
Inheritance
SequenceNumber
Attributes
Implements

Remarks

Each log record in a sequence is assigned a sequence number greater than the sequence numbers of the records appended before it. A sequence number can be compared, but not otherwise manipulated.

Constructors

SequenceNumber(Byte[])

Initializes a new instance of the SequenceNumber class.

Properties

Invalid

Gets a sequence number that serves as a default value for representing an invalid sequence number.

Methods

CompareTo(SequenceNumber)

Compares this sequence number with a specified object.

Equals(Object)

Indicates whether this instance and a specified object are equal.

Equals(SequenceNumber)

Indicates whether this instance and a specified sequence number are equal.

GetBytes()

Encodes all or part of the current sequence number into a byte array.

GetHashCode()

Returns the hash code for this instance.

Operators

Equality(SequenceNumber, SequenceNumber)

Compares two SequenceNumber instances to determine whether they are equal.

GreaterThan(SequenceNumber, SequenceNumber)

Performs a logical comparison of two SequenceNumber instances to determine whether the first is greater than the second.

GreaterThanOrEqual(SequenceNumber, SequenceNumber)

Performs a logical comparison of two SequenceNumber instances to determine whether the first is greater than or equal to the second.

Inequality(SequenceNumber, SequenceNumber)

Compares two SequenceNumber instances to determine whether they are not equal.

LessThan(SequenceNumber, SequenceNumber)

Performs a logical comparison of the two SequenceNumber parameters to determine whether the first is less than the second.

LessThanOrEqual(SequenceNumber, SequenceNumber)

Performs a logical comparison of the two SequenceNumber parameters to determine whether the first is less than or equal to the second.

Applies to