Bagikan melalui


Server.JoinAvailabilityGroup Method

Indicates a specified object to join the availability group.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub JoinAvailabilityGroup ( _
    availabilityGroupName As String _
)
'Usage
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
)

Parameters

  • availabilityGroupName
    Type: System.String
    The name of the availability group.

See Also

Reference

Server Class

Microsoft.SqlServer.Management.Smo Namespace