AvailabilityDatabase 构造函数 (AvailabilityGroup, String)
Initializes a new instance of the AvailabilityDatabase class with the specified name and availability group.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Sub New ( _
availabilityGroup As AvailabilityGroup, _
name As String _
)
用法
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
)
参数
- availabilityGroup
类型:Microsoft.SqlServer.Management.Smo.AvailabilityGroup
The availability group.
- name
类型:System.String
The name of the database.