Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Initializes a new instance of the DataFile class on the specified file group with the specified name.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub New ( _
fileGroup As FileGroup, _
name As String _
)
'Usage
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
)
Parameters
- fileGroup
Type: Microsoft.SqlServer.Management.Smo.FileGroup
A FileGroup object value that specifies the file group to which this data file belongs.
- name
Type: System.String
A String value that specifies the name of the data file.
Examples
Using Filegroups and Files to Store Data
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace