DataFile Constructor (FileGroup, String, String)

 

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

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public DataFile(
	FileGroup fileGroup,
	string name,
	string fileName
)

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.

fileName
Type: System.String

A String value that specifies the file name of the data file.

Return to top
Show: