Udostępnij za pośrednictwem


InstanceDatabaseOptions Constructor

Initializes a new instance of the InstanceDatabaseOptions class.

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

Syntax

'Declaration
Public Sub New ( _
    instance As Instance, _
    name As String _
)
public InstanceDatabaseOptions (
    Instance instance,
    string name
)
public:
InstanceDatabaseOptions (
    Instance^ instance, 
    String^ name
)
public InstanceDatabaseOptions (
    Instance instance, 
    String name
)
public function InstanceDatabaseOptions (
    instance : Instance, 
    name : String
)

Parameters

  • instance
    The Instance for the database options.
  • name
    A String containing a name for the database options. This name is not used by Notification Services.

Example

The following examples show how to create an InstanceDatabaseOptions object:

InstanceDatabaseOptions idb = 
    new InstanceDatabaseOptions(myInstance, "MyInstDB");
Dim idb As InstanceDatabaseOptions = _
    New InstanceDatabaseOptions(myInstance, "MyInstDB")

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