مشاركة عبر


AvailabilityDatabase Constructor (AvailabilityGroup, String)

Initializes a new instance of the AvailabilityDatabase class with the specified name and availability group.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub New ( _
    availabilityGroup As AvailabilityGroup, _
    name As String _
)
'Usage
Dim availabilityGroup As AvailabilityGroup 
Dim name As String 

Dim instance As New AvailabilityDatabase(availabilityGroup, _
    name)
public AvailabilityDatabase(
    AvailabilityGroup availabilityGroup,
    string name
)
public:
AvailabilityDatabase(
    AvailabilityGroup^ availabilityGroup, 
    String^ name
)
new : 
        availabilityGroup:AvailabilityGroup * 
        name:string -> AvailabilityDatabase
public function AvailabilityDatabase(
    availabilityGroup : AvailabilityGroup, 
    name : String
)

Parameters

See Also

Reference

AvailabilityDatabase Class

AvailabilityDatabase Overload

Microsoft.SqlServer.Management.Smo Namespace