Partager via


Classe DatabaseReplicaState

Represents the runtime state of a database that’s participating in an availability group. This database may be located on any of the replicas that compose the availability group.

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.Management.Smo.SmoObjectBase
    Microsoft.SqlServer.Management.Smo.SqlSmoObject
      Microsoft.SqlServer.Management.Smo.DatabaseReplicaState

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
Public NotInheritable Class DatabaseReplicaState _
    Inherits SqlSmoObject
'Utilisation
Dim instance As DatabaseReplicaState
[PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
public sealed class DatabaseReplicaState : SqlSmoObject
[PhysicalFacetAttribute(PhysicalFacetOptions::ReadOnly)]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
public ref class DatabaseReplicaState sealed : public SqlSmoObject
[<SealedAttribute>]
[<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
type DatabaseReplicaState =  
    class 
        inherit SqlSmoObject 
    end
public final class DatabaseReplicaState extends SqlSmoObject

Le type DatabaseReplicaState expose les membres suivants.

Propriétés

  Nom Description
Propriété publique AvailabilityDatabaseName Gets the name of the availability database.
Propriété publique AvailabilityDateabaseId Gets the identifier of the database within the availability group.
Propriété publique AvailabilityGroupId Gets the identifier of the availability group to which the database belongs.
Propriété publique AvailabilityGroupName Gets the name of the availability group.
Propriété publique AvailabilityReplicaId Gets the identifier of the availability replica within the availability group.
Propriété publique AvailabilityReplicaServerName Gets the server name of the availability replica.
Propriété publique DatabaseId Gets the identifier of the database, unique within an instance of SQL Server.
Propriété publique EndOfLogLSN Gets the LSN of the most recent log record flushed to disk.
Propriété publique EstimatedDataLoss Gets the estimated data loss.
Propriété publique EstimatedRecoveryTime Gets the estimated recovery time.
Propriété publique FileStreamSendRate Gets the rate at which the files are sent to the secondary replica.
Propriété publique IsFailoverReady Gets or sets a value that indicates whether the database is marked synchronized in the cluster.
Propriété publique IsJoined Gets or sets a value that indicates whether the availability database has a physical replica on the server instance.
Propriété publique IsLocal Gets or sets a value that indicates whether the database is local to the instance.
Propriété publique IsSuspended Gets a value that indicates whether the state of the database replica is suspended.
Propriété publique LastCommitLSN Gets the LSN of the last commit record.
Propriété publique LastCommitTime Gets the time corresponding to the last commit record.
Propriété publique LastHardenedLSN Gets the start of the log block that contained the latest log records that were written to disk.
Propriété publique LastHardenedTime Gets the time when the log-block identifier for the last hardened LSN.
Propriété publique LastReceivedLSN Gets the last log block that was received on this secondary replica for this database.
Propriété publique LastReceivedTime Gets the time when the log block identifier was last received on the secondary.
Propriété publique LastRedoneLSN Gets the last log record that was redone on the secondary database.
Propriété publique LastRedoneTime Gets the time when the last log record was redone on the secondary database.
Propriété publique LastSentLSN Gets the last block of transaction log records that was sent to this secondary replica for this database.
Propriété publique LastSentTime Gets the time when the last log block was sent.
Propriété publique LogSendQueueSize Gets the amount of log records in the log files of the primary database that has not been sent to the secondary replica.
Propriété publique LogSendRate Gets the rate at which log records are being sent to the secondary replica.
Propriété publique Parent Gets the AvailabilityGroup object that is the parent of the DatabaseReplicaState object.
Propriété publique Properties Gets a collection of Property objects that represent the object properties. (hérité de SqlSmoObject.)
Propriété publique RecoveryLSN Gets the end of the transaction log before the replica writes any new log records after recovery failover.
Propriété publique RedoQueueSize Gets the amount of log records in the log files of the secondary replica that has not yet been redone.
Propriété publique RedoRate Gets the rate at which the log records are being redone.
Propriété publique ReplicaAvailabilityMode Gets the availability mode of the availability replica.
Propriété publique ReplicaRole Gets the role of the availability replica.
Propriété publique State Gets the state of the referenced object. (hérité de SmoObjectBase.)
Propriété publique SuspendReason Gets the reason for a database replica to be in suspended state.
Propriété publique SynchronizationPerformance Gets the performance of the synchronization for the database.
Propriété publique SynchronizationState Gets the state of the availability database synchronization.
Propriété publique TruncationLSN Gets the log truncation value, which may be higher than the local truncation LSN if local log truncation is blocked.
Propriété publique Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (hérité de SqlSmoObject.)
Propriété publique UserData Gets or sets user-defined data associated with the referenced object. (hérité de SmoObjectBase.)

Haut de la page

Méthodes

  Nom Description
Méthode publique Discover Discovers a list of type Object. (hérité de SqlSmoObject.)
Méthode publique Equals (hérité de Object.)
Méthode protégée FormatSqlVariant Formats an object as SqlVariant type. (hérité de SqlSmoObject.)
Méthode protégée GetContextDB Gets the context database that is associated with this object. (hérité de SqlSmoObject.)
Méthode protégée GetDBName Gets the database name that is associated with the object. (hérité de SqlSmoObject.)
Méthode publique GetHashCode (hérité de Object.)
Méthode protégée GetPropValue Gets a property value of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode protégée GetPropValueOptional Gets a property value of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode protégée GetPropValueOptionalAllowNull Gets a property value of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode protégée GetServerObject Gets the server of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode publique GetType (hérité de Object.)
Méthode publique Initialize() Initializes the object and forces the properties be loaded. (hérité de SqlSmoObject.)
Méthode publique Initialize(Boolean) Initializes the object and forces the properties be loaded. (hérité de SqlSmoObject.)
Méthode protégée IsObjectInitialized Verifies whether the object has been initialized. (hérité de SqlSmoObject.)
Méthode protégée IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (hérité de SqlSmoObject.)
Méthode publique Refresh Refreshes the object and retrieves properties when the object is next accessed. (hérité de SqlSmoObject.)
Méthode protégée SetParentImpl Sets the parent of the SqlSmoObject to the newParent parameter. (hérité de SqlSmoObject.)
Méthode publique ToString Returns a String that represents the referenced object. (hérité de SqlSmoObject.)
Méthode publique Validate Validates the state of an object. (hérité de SmoObjectBase.)

Haut de la page

Événements

  Nom Description
Événement public PropertyChanged Represents the event that occurs when a property is changed. (hérité de SqlSmoObject.)
Événement public PropertyMetadataChanged Represents the event that occurs when property metadata changes. (hérité de SqlSmoObject.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée IAlienObject.Discover Discovers any dependencies. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.GetDomainRoot Returns the root of the domain. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.GetParent Gets the parent of this object. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.GetPropertyType Gets the type of the specified property. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.GetPropertyValue Gets the value of the specified property. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.GetUrn Gets the Unified Resource Name (URN) of the object. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.Resolve Gets the instance that contains the information about the object from the Unified Resource Name (URN) of the object. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.SetObjectState Sets the object state to the specified SfcObjectState value. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.SetPropertyValue Sets the property value. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée ISfcPropertyProvider.GetPropertySet Gets the interface reference to the set of properties of this object. (hérité de SqlSmoObject.)

Haut de la page

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.Smo