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.