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 (in microsoft.sqlserver.smo.dll)
语法
声明
Public Sub New ( _
fileGroup As FileGroup, _
name As String, _
fileName As String _
)
public DataFile (
FileGroup fileGroup,
string name,
string fileName
)
public:
DataFile (
FileGroup^ fileGroup,
String^ name,
String^ fileName
)
public DataFile (
FileGroup fileGroup,
String name,
String fileName
)
public function DataFile (
fileGroup : FileGroup,
name : String,
fileName : String
)
参数
- fileGroup
A FileGroup object value that specifies the file group to which this data file belongs.
- name
A String value that specifies the name of the data file.
- fileName
A String value that specifies the file name of the data file.
备注
仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。
示例
How to: Add FileGroups and DataFiles to a Database in Visual Basic .NET
平台
开发平台
有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。
目标平台
有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。
请参阅
参考
DataFile Class
DataFile Members
Microsoft.SqlServer.Management.Smo Namespace
其他资源
Using Filegroups and Files to Store Data
物理数据库文件和文件组
CREATE DATABASE (Transact-SQL)