ApplicationDatabaseFileGroup Constructor ()
Initializes a new instance of the ApplicationDatabaseFileGroup class.
Namespace: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Declaration
Public Sub New
public ApplicationDatabaseFileGroup ()
public:
ApplicationDatabaseFileGroup ()
public ApplicationDatabaseFileGroup ()
public function ApplicationDatabaseFileGroup ()
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 the Parent property. You can then set other properties.
Example
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)
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
ApplicationDatabaseFileGroup Class
ApplicationDatabaseFileGroup Members
Microsoft.SqlServer.Management.Nmo Namespace