Classe LogFile
The LogFile object represents a SQL Server log file.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute> _
Public NotInheritable Class LogFile _
Inherits DatabaseFile _
Implements ICreatable
'Utilisation
Dim instance As LogFile
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[PhysicalFacetAttribute]
public sealed class LogFile : DatabaseFile,
ICreatable
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[PhysicalFacetAttribute]
public ref class LogFile sealed : public DatabaseFile,
ICreatable
[<SealedAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<PhysicalFacetAttribute>]
type LogFile =
class
inherit DatabaseFile
interface ICreatable
end
public final class LogFile extends DatabaseFile implements ICreatable
Notes
To get the LogFile object properties, users can be a member of the public fixed server role.
To set LogFile object properties, users must have ALTER permission on the database or be a member of the db_owner fixed database role.
To create or drop a log file, users must have ALTER permission on the database or be a member of the db_owner fixed database role.
Thread Safety
Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme sûrs.
Hiérarchie d'héritage
System. . :: . .Object
Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectBase
Microsoft.SqlServer.Management.Smo. . :: . .SqlSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .NamedSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .DatabaseFile
Microsoft.SqlServer.Management.Smo..::..LogFile
Sécurité des threads
Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.
Voir aussi