SequenceNumber 结构

定义

表示记录序列中分配给日志记录的序列号。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>
type SequenceNumber = struct
Public Structure SequenceNumber
Implements IComparable(Of SequenceNumber)
继承
SequenceNumber
属性
实现

注解

序列中的每个日志记录都会分配一个序列号,该序列号大于此前追加的记录的序列号。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.

构造函数

SequenceNumber(Byte[])

初始化 SequenceNumber 类的新实例。Initializes a new instance of the SequenceNumber class.

属性

Invalid

获取用于表示无效序列号默认值的序列号。Gets a sequence number that serves as a default value for representing an invalid sequence number.

方法

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.

运算符

Equality(SequenceNumber, SequenceNumber)

比较两个 SequenceNumber 实例以确定它们是否相等。Compares two SequenceNumber instances to determine whether they are equal.

GreaterThan(SequenceNumber, SequenceNumber)

对两个 SequenceNumber 实例执行逻辑比较,以确定第一个实例是否大于第二个实例。Performs a logical comparison of two SequenceNumber instances to determine whether the first is greater than the second.

GreaterThanOrEqual(SequenceNumber, 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)

对两个 SequenceNumber 实例进行比较,以确定它们是否不相等。Compares two SequenceNumber instances to determine whether they are not equal.

LessThan(SequenceNumber, SequenceNumber)

对两个 SequenceNumber 参数执行逻辑比较,以确定第一个参数是否小于第二个参数。Performs a logical comparison of the two SequenceNumber parameters to determine whether the first is less than the second.

LessThanOrEqual(SequenceNumber, SequenceNumber)

对两个 SequenceNumber 参数执行逻辑比较,以确定第一个参数是否小于或等于第二个参数。Performs a logical comparison of the two SequenceNumber parameters to determine whether the first is less than or equal to the second.

适用于