Share via


LogRecordSequence.RetryAppend 屬性

定義

取得或設定值,這個值表示是否在記錄已滿時自動重試附加作業。

public:
 property bool RetryAppend { bool get(); void set(bool value); };
public bool RetryAppend { get; set; }
member this.RetryAppend : bool with get, set
Public Property RetryAppend As Boolean

屬性值

如果要在記錄檔已滿時自動重試附加作業,則為 true,否則為 false。 預設為 true

實作

例外狀況

已在處置序列之後存取此屬性。

範例

這個範例會說明如何使用 RetryAppend 屬性。

// SET RETRY APPEND

// IO.Log provides a mechanism similar to AutoGrow.
// If the existing log is full and an append fails, setting RetryAppend
// invokes the CLFS policy engine to add new extents and re-tries
// record appends. If MaximumExtent count has been reached,
// a SequenceFullException is thrown.
//

sequence.RetryAppend = true;

// RETRY APPEND END
' SET RETRY APPEND

' IO.Log provides a mechanism similar to AutoGrow.
' If the existing log is full and an append fails, setting RetryAppend
' invokes the CLFS policy engine to add new extents and re-tries
' record appends. If MaximumExtent count has been reached, 
' a SequenceFullException is thrown. 
' 

sequence.RetryAppend = True

' RETRY APPEND END

備註

如果這個屬性的值是 true,且 Append 呼叫因為順序中的空間不足而失敗,記錄順序將會嘗試釋放空間,並重試附加作業。

適用於