AvailabilityGroupState-Klasse
Represents an adapter class that implements the IAvailabilityGroupState logical facet for an availability group.
Vererbungshierarchie
System.Object
Microsoft.SqlServer.Management.Smo.AvailabilityGroupState
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Class AvailabilityGroupState _
Implements IAvailabilityGroupState, IDmfFacet, IDmfAdapter, IRefreshable
'Usage
Dim instance As AvailabilityGroupState
public class AvailabilityGroupState : IAvailabilityGroupState,
IDmfFacet, IDmfAdapter, IRefreshable
public ref class AvailabilityGroupState : IAvailabilityGroupState,
IDmfFacet, IDmfAdapter, IRefreshable
type AvailabilityGroupState =
class
interface IAvailabilityGroupState
interface IDmfFacet
interface IDmfAdapter
interface IRefreshable
end
public class AvailabilityGroupState implements IAvailabilityGroupState, IDmfFacet, IDmfAdapter, IRefreshable
Der AvailabilityGroupState-Typ macht folgende Elemente verfügbar.
Konstruktoren
Name | Beschreibung | |
---|---|---|
AvailabilityGroupState | Initializes a new instance of the AvailabilityGroupState class with the specified availability group. |
Zum Anfang
Eigenschaften
Name | Beschreibung | |
---|---|---|
IsAutoFailover | Gets a value that indicates whether the failover mode of the current primary replica of the availability group is set to automatic failover. | |
IsOnline | Gets whether the availability group is online. | |
NumberOfDisconnectedReplicas | Gets the number of replicas that are not in a “Connected” state. | |
NumberOfNotSynchronizedReplicas | Gets the number of replicas that are not in a “Synchronized” state. | |
NumberOfNotSynchronizingReplicas | Gets the number of replicas in a “Not Synchronizing” state. | |
NumberOfReplicasWithUnhealthyRole | Gets the number of replicas that are neither a primary or a secondary in the Availability Group. | |
NumberOfSynchronizedSecondaryReplicas | Gets the number of synchronous secondary replicas with Automatic Failover mode and Synchronized state. |
Zum Anfang
Methoden
Name | Beschreibung | |
---|---|---|
Equals | (Geerbt von Object.) | |
Finalize | (Geerbt von Object.) | |
GetHashCode | (Geerbt von Object.) | |
GetType | (Geerbt von Object.) | |
MemberwiseClone | (Geerbt von Object.) | |
Refresh | Reloads the availability group. | |
ToString | (Geerbt von Object.) |
Zum Anfang
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.