Partager via


InstanceDatabaseFileGroup Constructor ()

Initializes a new instance of the InstanceDatabaseFileGroup class.

Espace de noms: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntaxe

'Déclaration
Public Sub New
public InstanceDatabaseFileGroup ()
public:
InstanceDatabaseFileGroup ()
public InstanceDatabaseFileGroup ()
public function InstanceDatabaseFileGroup ()

Notes

Texte mis à jour :5 décembre 2005

Exemple de code mis à jour :5 décembre 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.

Exemple

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)

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

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