다음을 통해 공유


AvailabilityGroup.LocalReplicaRole 속성

Gets the availability replica role.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property LocalReplicaRole As AvailabilityReplicaRole 
    Get
‘사용 방법
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

속성 값

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

참고 항목

참조

AvailabilityGroup 클래스

Microsoft.SqlServer.Management.Smo 네임스페이스