Share via


InstanceDatabaseOptions.InstanceDatabaseFileGroups Property

Gets the collection of InstanceDatabaseFileGroup objects for the Notification ServicesInstance.

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

Syntax

'Declaration
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

Property Value

An InstanceDatabaseFileGroupCollection collection.

Remarks

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

Example

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.

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

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

Other Resources

Defining the Instance Database