共用方式為


DataFile 建構函式 (FileGroup, String, String)

Initializes a new instance of the DataFile class on the specified file group with the specified name and file name.

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

語法

'宣告
Public Sub New ( _
    fileGroup As FileGroup, _
    name As String, _
    fileName As String _
)
'用途
Dim fileGroup As FileGroup 
Dim name As String 
Dim fileName As String 

Dim instance As New DataFile(fileGroup, _
    name, fileName)
public DataFile(
    FileGroup fileGroup,
    string name,
    string fileName
)
public:
DataFile(
    FileGroup^ fileGroup, 
    String^ name, 
    String^ fileName
)
new : 
        fileGroup:FileGroup * 
        name:string * 
        fileName:string -> DataFile
public function DataFile(
    fileGroup : FileGroup, 
    name : String, 
    fileName : String
)

參數

  • fileName
    型別:System.String
    A String value that specifies the file name of the data file.

範例

使用檔案群組和檔案來儲存資料

請參閱

參考

DataFile 類別

DataFile 多載

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

檔案與檔案群組架構

CREATE DATABASE (Transact-SQL)