共用方式為


AvailabilityGroupState.NumberOfReplicasWithUnhealthyRole 屬性

Gets the number of replicas that are neither a primary or a secondary in the Availability Group.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public ReadOnly Property NumberOfReplicasWithUnhealthyRole As Integer 
    Get
'用途
Dim instance As AvailabilityGroupState 
Dim value As Integer 

value = instance.NumberOfReplicasWithUnhealthyRole
public int NumberOfReplicasWithUnhealthyRole { get; }
public:
virtual property int NumberOfReplicasWithUnhealthyRole {
    int get () sealed;
}
abstract NumberOfReplicasWithUnhealthyRole : int 
override NumberOfReplicasWithUnhealthyRole : int
final function get NumberOfReplicasWithUnhealthyRole () : int

屬性值

型別:System.Int32
The number of replicas that are neither a primary or a secondary in the availability group.

實作

IAvailabilityGroupState.NumberOfReplicasWithUnhealthyRole

請參閱

參考

AvailabilityGroupState 類別

Microsoft.SqlServer.Management.Smo 命名空間