SequenceNumber SequenceNumber SequenceNumber SequenceNumber Struct

定義

代表依記錄順序指派給記錄檔記錄的序號。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)
繼承
SequenceNumberSequenceNumberSequenceNumberSequenceNumber
屬性
實作

備註

順序中的每一個記錄檔記錄被指派的序號會大於在它之前附加的記錄的序號。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(Byte[]) SequenceNumber(Byte[]) SequenceNumber(Byte[])

初始化 SequenceNumber 類別的新執行個體。Initializes a new instance of the SequenceNumber class.

屬性

Invalid Invalid Invalid Invalid

取得做為預設值的序號,以用來表示無效的序號。Gets a sequence number that serves as a default value for representing an invalid sequence number.

方法

CompareTo(SequenceNumber) CompareTo(SequenceNumber) CompareTo(SequenceNumber) CompareTo(SequenceNumber)

比較這個序號與指定的物件。Compares this sequence number with a specified object.

Equals(SequenceNumber) Equals(SequenceNumber) Equals(SequenceNumber) Equals(SequenceNumber)

指示這個執行個體和指定的序號是否相等。Indicates whether this instance and a specified sequence number are equal.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

指示這個執行個體和指定的物件是否相等。Indicates whether this instance and a specified object are equal.

GetBytes() GetBytes() GetBytes() GetBytes()

將目前序號的全部或部分編碼為位元組陣列。Encodes all or part of the current sequence number into a byte array.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

傳回這個執行個體的雜湊碼。Returns the hash code for this instance.

運算子

Equality(SequenceNumber, SequenceNumber) Equality(SequenceNumber, SequenceNumber) Equality(SequenceNumber, SequenceNumber) Equality(SequenceNumber, SequenceNumber)

比較兩個 SequenceNumber 執行個體,判斷它們是否相等。Compares two SequenceNumber instances to determine whether they are equal.

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

比較兩個 SequenceNumber 執行個體,判斷它們是否不相等。Compares two SequenceNumber instances to determine whether they are not equal.

LessThan(SequenceNumber, SequenceNumber) LessThan(SequenceNumber, SequenceNumber) LessThan(SequenceNumber, SequenceNumber) 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) LessThanOrEqual(SequenceNumber, SequenceNumber) LessThanOrEqual(SequenceNumber, SequenceNumber) 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.

適用於