共用方式為


Server.JoinAvailabilityGroup Method

Definition

Overloads

JoinAvailabilityGroup(String)

This method is called on a secondary replica that has been added to an Availability Group from a primary to complete the handshake. Upon successful execution the instance will become a functioning replica in the availability group.

JoinAvailabilityGroup(String, AvailabilityGroupClusterType)

This method is called on a secondary replica that has been added to an Availability Group from a primary to complete the handshake. Upon successful execution the instance will become a functioning replica in the availability group.

JoinAvailabilityGroup(String)

This method is called on a secondary replica that has been added to an Availability Group from a primary to complete the handshake. Upon successful execution the instance will become a functioning replica in the availability group.

public void JoinAvailabilityGroup (string availabilityGroupName);
member this.JoinAvailabilityGroup : string -> unit
Public Sub JoinAvailabilityGroup (availabilityGroupName As String)

Parameters

availabilityGroupName
String

Applies to

JoinAvailabilityGroup(String, AvailabilityGroupClusterType)

This method is called on a secondary replica that has been added to an Availability Group from a primary to complete the handshake. Upon successful execution the instance will become a functioning replica in the availability group.

public void JoinAvailabilityGroup (string availabilityGroupName, Microsoft.SqlServer.Management.Smo.AvailabilityGroupClusterType availabilityGroupClusterType);
member this.JoinAvailabilityGroup : string * Microsoft.SqlServer.Management.Smo.AvailabilityGroupClusterType -> unit
Public Sub JoinAvailabilityGroup (availabilityGroupName As String, availabilityGroupClusterType As AvailabilityGroupClusterType)

Parameters

availabilityGroupName
String
availabilityGroupClusterType
AvailabilityGroupClusterType

Applies to