Condividi tramite


LogRecordSequence.RetryAppend Proprietà

Definizione

Ottiene o imposta un valore che indica se le accodamenti vengono ritentate automaticamente se il log è pieno.

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

Valore della proprietà

true se gli accodamenti vengono ritentati automaticamente se il log è pieno; in caso contrario, false. Il valore predefinito è true.

Implementazioni

Eccezioni

La proprietà è stata accessibile dopo che la sequenza è stata eliminata.

Esempio

In questo esempio viene illustrato come utilizzare la RetryAppend proprietà .

// 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

Commenti

Se il valore di questa proprietà è truee una Append chiamata ha esito negativo perché non è presente spazio sufficiente nella sequenza, la sequenza di record tenterà di liberare spazio e ritentare l'accodamento.

Si applica a