AvailabilityReplica 构造函数 (AvailabilityGroup, String)

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

命名空间:  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 AvailabilityReplica(availabilityGroup, _
    name)
public AvailabilityReplica(
    AvailabilityGroup availabilityGroup,
    string name
)
public:
AvailabilityReplica(
    AvailabilityGroup^ availabilityGroup, 
    String^ name
)
new : 
        availabilityGroup:AvailabilityGroup * 
        name:string -> AvailabilityReplica
public function AvailabilityReplica(
    availabilityGroup : AvailabilityGroup, 
    name : String
)

参数

  • name
    类型:System.String
    The specified name of the availability replica to be created.

请参阅

参考

AvailabilityReplica 类

AvailabilityReplica 重载

Microsoft.SqlServer.Management.Smo 命名空间