Share via


AvailabilityDatabase.LeaveAvailabilityGroup Method

Removes the local copy of the database on the availability replica from the availability group.

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

Syntax

'Declaration
Public Sub LeaveAvailabilityGroup
'Usage
Dim instance As AvailabilityDatabase

instance.LeaveAvailabilityGroup()
public void LeaveAvailabilityGroup()
public:
void LeaveAvailabilityGroup()
member LeaveAvailabilityGroup : unit -> unit
public function LeaveAvailabilityGroup()

See Also

Reference

AvailabilityDatabase Class

Microsoft.SqlServer.Management.Smo Namespace