DataFile 建構函式 (FileGroup, String)
Initializes a new instance of the DataFile class on the specified file group with the specified name.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub New ( _
fileGroup As FileGroup, _
name As String _
)
'用途
Dim fileGroup As FileGroup
Dim name As String
Dim instance As New DataFile(fileGroup, _
name)
public DataFile(
FileGroup fileGroup,
string name
)
public:
DataFile(
FileGroup^ fileGroup,
String^ name
)
new :
fileGroup:FileGroup *
name:string -> DataFile
public function DataFile(
fileGroup : FileGroup,
name : String
)
參數
- fileGroup
型別:Microsoft.SqlServer.Management.Smo.FileGroup
A FileGroup object value that specifies the file group to which this data file belongs.
- name
型別:System.String
A String value that specifies the name of the data file.
範例
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間