Share via


DatabaseFile 類別

The DatabaseFile object is a base class used in the construction of DataFile objects and LogFile objects.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Class DatabaseFile _
    Inherits NamedSmoObject _
    Implements IAlterable, IDroppable, IRenamable, IMarkForDrop
'用途
Dim instance As DatabaseFile
public class DatabaseFile : NamedSmoObject, 
    IAlterable, IDroppable, IRenamable, IMarkForDrop
public ref class DatabaseFile : public NamedSmoObject, 
    IAlterable, IDroppable, IRenamable, IMarkForDrop
type DatabaseFile =  
    class
        inherit NamedSmoObject
        interface IAlterable
        interface IDroppable
        interface IRenamable
        interface IMarkForDrop
    end
public class DatabaseFile extends NamedSmoObject implements IAlterable, IDroppable, IRenamable, IMarkForDrop

備註

The DatabaseFile object is used to specify a file required to store data or a transaction log.

Thread Safety

這種類型的任何公用靜態 (在 Microsoft Visual Basic 中則為 Shared) 成員都可用於多執行緒作業。並不是所有的執行個體成員都保證可以用於所有的執行緒。

執行緒安全性

這個類型的任何公用static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員都可以是安全執行緒。