Condividi tramite


InstanceDatabaseOptions.InstanceDatabaseFileGroups Property

Gets the collection of InstanceDatabaseFileGroup objects for the Notification ServicesInstance.

Spazio dei nomi: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintassi

'Dichiarazione
Public ReadOnly Property InstanceDatabaseFileGroups As InstanceDatabaseFileGroupCollection
public InstanceDatabaseFileGroupCollection InstanceDatabaseFileGroups { get; }
public:
property InstanceDatabaseFileGroupCollection^ InstanceDatabaseFileGroups {
    InstanceDatabaseFileGroupCollection^ get ();
}
/** @property */
public InstanceDatabaseFileGroupCollection get_InstanceDatabaseFileGroups ()
public function get InstanceDatabaseFileGroups () : InstanceDatabaseFileGroupCollection

Valore proprietà

An InstanceDatabaseFileGroupCollection collection.

Osservazioni

Use the methods of the InstanceDatabaseFileGroupCollection class to add or remove InstanceDatabaseFileGroup objects.

Esempio

The following examples show how to define a filegroup for an instance database and then add it to the collection of filegroups:

InstanceDatabaseFileGroup idb_fg = 
    new InstanceDatabaseFileGroup(idb, "PRIMARY");
idb.InstanceDatabaseFileGroups.Add(idb_fg);
Dim idb_fg As InstanceDatabaseFileGroup = _
    New InstanceDatabaseFileGroup(idb, "PRIMARY")
idb.InstanceDatabaseFileGroups.Add(idb_fg)

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

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

Altre risorse

Definizione del database dell'istanza