Aracılığıyla paylaş


LogFile Class

The LogFile object represents a SQL Server log file.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Bildirim
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute> _
Public NotInheritable Class LogFile
    Inherits DatabaseFile
    Implements ICreatable
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)] 
[PhysicalFacetAttribute] 
public sealed class LogFile : DatabaseFile, ICreatable
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)] 
[PhysicalFacetAttribute] 
public ref class LogFile sealed : public DatabaseFile, ICreatable
/** @attribute EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule) */ 
/** @attribute PhysicalFacetAttribute() */ 
public final class LogFile extends DatabaseFile implements ICreatable
EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule) 
PhysicalFacetAttribute 
public final class LogFile extends DatabaseFile implements ICreatable

Remarks

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

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.