Compartilhar via


Classe LogFileCollection

The LogFileCollection class represents a collection of LogFile objects that represent all the log files defined on the instance of Microsoft SQL Server.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public NotInheritable Class LogFileCollection _
    Inherits SimpleObjectCollectionBase
'Uso
Dim instance As LogFileCollection
public sealed class LogFileCollection : SimpleObjectCollectionBase
public ref class LogFileCollection sealed : public SimpleObjectCollectionBase
[<SealedAttribute>]
type LogFileCollection =  
    class
        inherit SimpleObjectCollectionBase
    end
public final class LogFileCollection extends SimpleObjectCollectionBase

Comentários

A LogFileCollection object can be used to gain access to a set of log files. You can use the Item property to return a specific LogFile object.

Thread Safety

Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.

Segurança de thread

Quaisquer membros static (Shared no Visual Basic) públicos deste tipo são thread-safe. Não há garantia de que qualquer membro de instância seja thread-safe.