Condividi tramite


Proprietà DatabaseReplicaState.AvailabilityGroupId

Gets the identifier of the availability group to which the database belongs.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property AvailabilityGroupId As Guid 
    Get
'Utilizzo
Dim instance As DatabaseReplicaState 
Dim value As Guid 

value = instance.AvailabilityGroupId
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public Guid AvailabilityGroupId { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property Guid AvailabilityGroupId {
    Guid get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member AvailabilityGroupId : Guid
function get AvailabilityGroupId () : Guid

Valore proprietà

Tipo: System.Guid
The identifier of the availability group to which the database belongs.

Vedere anche

Riferimento

DatabaseReplicaState Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo