Share via


AvailabilityGroup.LocalReplicaRole Property

Gets the availability replica role.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property LocalReplicaRole As AvailabilityReplicaRole 
    Get
'Usage
Dim instance As AvailabilityGroup 
Dim value As AvailabilityReplicaRole 

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

Property Value

Type: Microsoft.SqlServer.Management.Smo.AvailabilityReplicaRole
One of the enumeration values of the AvailabilityReplicaRole enumeration.

See Also

Reference

AvailabilityGroup Class

Microsoft.SqlServer.Management.Smo Namespace