Server.JoinAvailabilityGroup 方法
Indicates a specified object to join the availability group.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Sub JoinAvailabilityGroup ( _
availabilityGroupName As String _
)
用法
Dim instance As Server
Dim availabilityGroupName As String
instance.JoinAvailabilityGroup(availabilityGroupName)
public void JoinAvailabilityGroup(
string availabilityGroupName
)
public:
void JoinAvailabilityGroup(
String^ availabilityGroupName
)
member JoinAvailabilityGroup :
availabilityGroupName:string -> unit
public function JoinAvailabilityGroup(
availabilityGroupName : String
)
参数
- availabilityGroupName
类型:System.String
The name of the availability group.