Jaa


InstanceDatabaseFileGroup Constructor ()

Initializes a new instance of the InstanceDatabaseFileGroup class.

Namespace: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Sub New
public InstanceDatabaseFileGroup ()
public:
InstanceDatabaseFileGroup ()
public InstanceDatabaseFileGroup ()
public function InstanceDatabaseFileGroup ()

Remarks

Updated text:5 December 2005

Updated sample code:5 December 2005

If you use the default constructor, you must immediately set the Name property and then set the Parent property. You can then set other properties.

Example

The following examples show how to use this default constructor:

// Create filegroup and set required properties.
InstanceDatabaseFileGroup idb_fg = new InstanceDatabaseFileGroup();
idb_fg.Name = "PRIMARY";
idb_fg.Parent = idb;
idb.InstanceDatabaseFileGroups.Add(idb_fg);
' Create filegroup and set required properties.
Dim idb_fg As InstanceDatabaseFileGroup = _
    New InstanceDatabaseFileGroup()
idb_fg.Name = "PRIMARY"
idb_fg.Parent = idb
idb.InstanceDatabaseFileGroups.Add(idb_fg)

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

InstanceDatabaseFileGroup Class
InstanceDatabaseFileGroup Members
Microsoft.SqlServer.Management.Nmo Namespace