DatabaseReplicaState.AvailabilityReplicaId Property

Gets the identifier of the availability replica within 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 AvailabilityReplicaId As Guid 
    Get
'Usage
Dim instance As DatabaseReplicaState 
Dim value As Guid 

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

Property Value

Type: System.Guid
The identifier of the availability replica within the availability group.

See Also

Reference

DatabaseReplicaState Class

Microsoft.SqlServer.Management.Smo Namespace