LogRecordSequence.Flush Método

Definição

Grava registros acrescentados de maneira duradoura.Writes appended records durably.

Sobrecargas

Flush()

Garante que todos os registros acrescentados tenham sido gravados.Ensures that all appended records have been written. Esse método não pode ser herdado.This method cannot be inherited.

Flush(SequenceNumber)

Garante que todos os registros acrescentados até e incluindo o registro com o número de sequência especificado foram gravados de modo durável.Ensures that all appended records up to and including the record with the specified sequence number have been durably written. Esse método não pode ser herdado.This method cannot be inherited.

Flush()

Garante que todos os registros acrescentados tenham sido gravados.Ensures that all appended records have been written. Esse método não pode ser herdado.This method cannot be inherited.

public:
 virtual System::IO::Log::SequenceNumber Flush();
public System.IO.Log.SequenceNumber Flush ();
abstract member Flush : unit -> System.IO.Log.SequenceNumber
override this.Flush : unit -> System.IO.Log.SequenceNumber
Public Function Flush () As SequenceNumber

Retornos

SequenceNumber

O número de sequência do último registro gravado.The sequence number of the last record written.

Implementações

Exceções

Um erro de E/S ocorreu ao liberar os dados.An I/O error occurred while flushing the data.

O método foi chamado depois que a sequência foi descartada.The method was called after the sequence has been disposed of.

Não há suporte para essa operação.This operation is not supported.

Não há memória suficiente para continuar a execução do programa.There is not enough memory to continue the execution of the program.

O acesso para a sequência de log especificada foi negado pelo sistema operacional.Access for the specified log sequence is denied by the operating system.

A sequência de registro não pôde gerar espaço livre suficiente para conter a nova área de reinicialização.The record sequence could not make enough free space to contain the new restart area.

O log especificado não tem nenhuma extensão.The specified log does not have any extents. Uma ou mais extensões devem ser criadas antes que uma sequência de registro possa ser usada.One or more extents must be created before a record sequence can be used.

Comentários

Chamar esse método garante que todos os registros que foram anexados a foram LogRecordSequence gravados permanentemente.Calling this method ensures that all records that have been appended to the LogRecordSequence have been durably written.

Aplica-se a

Flush(SequenceNumber)

Garante que todos os registros acrescentados até e incluindo o registro com o número de sequência especificado foram gravados de modo durável.Ensures that all appended records up to and including the record with the specified sequence number have been durably written. Esse método não pode ser herdado.This method cannot be inherited.

public:
 virtual System::IO::Log::SequenceNumber Flush(System::IO::Log::SequenceNumber sequenceNumber);
public System.IO.Log.SequenceNumber Flush (System.IO.Log.SequenceNumber sequenceNumber);
abstract member Flush : System.IO.Log.SequenceNumber -> System.IO.Log.SequenceNumber
override this.Flush : System.IO.Log.SequenceNumber -> System.IO.Log.SequenceNumber
Public Function Flush (sequenceNumber As SequenceNumber) As SequenceNumber

Parâmetros

sequenceNumber
SequenceNumber

O número da sequência do registro mais recente que deve ser gravado.The sequence number of the latest record that must be written. Se esse SequenceNumber for inválido, todos os registros deverão ser gravados.If this SequenceNumber is invalid, then all records must be written.

Retornos

SequenceNumber

O número de sequência do último registro gravado.The sequence number of the last record written.

Implementações

Exceções

sequenceNumber não é válido para essa sequência.sequenceNumber is not valid for this sequence.

sequenceNumber não está entre os números de base e de última sequência dessa sequência.sequenceNumber is not between the base and last sequence numbers of this sequence.

A solicitação não pôde ser executada devido a uma exceção de E/S inesperada.The request could not be performed because of an unexpected I/O exception.

O log especificado não tem nenhuma extensão.The specified log does not have any extents. Uma ou mais extensões devem ser criadas antes que uma sequência de registro possa ser usada.One or more extents must be created before a record sequence can be used.

Não é possível executar a operação porque a sequência de registros foi aberta com acesso somente leitura.The operation cannot be performed because the record sequence was opened with read-only access.

O método foi chamado depois que a sequência foi descartada.The method was called after the sequence has been disposed of.

Não há memória suficiente para continuar a execução do programa.There is not enough memory to continue the execution of the program.

A sequência de registros está cheia.The record sequence is full.

O acesso para a sequência de log especificada foi negado pelo sistema operacional.Access for the specified log sequence is denied by the operating system.

Comentários

Chamar esse método garante que todos os registros com números de sequência até e incluindo o número de sequência especificado tenham sido permanentemente gravados.Calling this method ensures that all records with sequence numbers up to and including the specified sequence number have been durably written.

Aplica-se a