LogRecordSequence.RetryAppend Propiedad

Definición

Obtiene o establece un valor que indica si los anexos se reintentan automáticamente en caso de que el registro esté completo.

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

Valor de propiedad

true si las operaciones de anexado se reintentan automáticamente cuando el registro esté lleno; de lo contrario, false. De manera predeterminada, es true.

Implementaciones

Excepciones

Se tuvo acceso a la propiedad después de haber eliminado la secuencia.

Ejemplos

En este ejemplo se muestra cómo utilizar la propiedad 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

Comentarios

Si el valor de esta propiedad es true, y una llamada Append no puede realizarse porque no hay espacio suficiente en la secuencia, la secuencia de registro intentará liberar espacio y volverá a intentar anexarse.

Se aplica a