Database.AvailabilityGroupName Property
SQL Server 2012
Gets the availability group name in the database.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)