Freigeben über


DatabaseReplicaState.AvailabilityGroupName-Eigenschaft

Gets the name of the availability group.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property AvailabilityGroupName As String 
    Get
'Usage
Dim instance As DatabaseReplicaState 
Dim value As String 

value = instance.AvailabilityGroupName
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string AvailabilityGroupName { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ AvailabilityGroupName {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member AvailabilityGroupName : string
function get AvailabilityGroupName () : String

Eigenschaftswert

Typ: System.String
The name of the availability group.

Siehe auch

Verweis

DatabaseReplicaState Klasse

Microsoft.SqlServer.Management.Smo-Namespace