Partager via


ApplicationDatabaseFileGroup Constructor ()

Initializes a new instance of the ApplicationDatabaseFileGroup class.

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

Syntaxe

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

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 the Parent property. You can then set other properties.

Exemple

The following examples show how to use the default constructor for the ApplicationDatabaseFileGroup class:

// Create filegroup and set required properties.
ApplicationDatabaseFileGroup adb_fg = 
    new ApplicationDatabaseFileGroup();
adb_fg.Name = "PRIMARY";
adb_fg.Parent = adb;
adb.ApplicationDatabaseFileGroups.Add(adb_fg);
' Create filegroup and set required properties.
Dim adb_fg As ApplicationDatabaseFileGroup = _
    New ApplicationDatabaseFileGroup()
adb_fg.Name = "PRIMARY"
adb_fg.Parent = adb
adb.ApplicationDatabaseFileGroups.Add(adb_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

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