Partilhar 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.

Hierarquia de herança

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

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

Sintaxe

'Declaração
<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
Public NotInheritable Class DatabaseReplicaState _
    Inherits SqlSmoObject
'Uso
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

O tipo DatabaseReplicaState expõe os membros a seguir.

Propriedades

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

Início

Métodos

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

Início

Eventos

  Nome Descrição
Evento público PropertyChanged Represents the event that occurs when a property is changed. (Herdado de SqlSmoObject.)
Evento público PropertyMetadataChanged Represents the event that occurs when property metadata changes. (Herdado de SqlSmoObject.)

Início

Implementações de interfaces explícitas

  Nome Descrição
Implementações de interfaces explícitasMétodo privado IAlienObject.Discover Discovers any dependencies. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SqlSmoObject.)
Implementações de interfaces explícitasMétodo privado IAlienObject.GetDomainRoot Returns the root of the domain. (Herdado de SqlSmoObject.)
Implementações de interfaces explícitasMétodo privado IAlienObject.GetParent Gets the parent of this object. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SqlSmoObject.)
Implementações de interfaces explícitasMétodo privado IAlienObject.GetPropertyType Gets the type of the specified property. (Herdado de SqlSmoObject.)
Implementações de interfaces explícitasMétodo privado IAlienObject.GetPropertyValue Gets the value of the specified property. (Herdado de SqlSmoObject.)
Implementações de interfaces explícitasMétodo privado IAlienObject.GetUrn Gets the Unified Resource Name (URN) of the object. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. (Herdado de SqlSmoObject.)
Implementações de interfaces explícitasMétodo privado IAlienObject.Resolve Gets the instance that contains the information about the object from the Unified Resource Name (URN) of the object. (Herdado de SqlSmoObject.)
Implementações de interfaces explícitasMétodo privado IAlienObject.SetObjectState Sets the object state to the specified SfcObjectState value. (Herdado de SqlSmoObject.)
Implementações de interfaces explícitasMétodo privado IAlienObject.SetPropertyValue Sets the property value. (Herdado de SqlSmoObject.)
Implementações de interfaces explícitasMétodo privado ISfcPropertyProvider.GetPropertySet Gets the interface reference to the set of properties of this object. (Herdado de SqlSmoObject.)

Início

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência

Namespace Microsoft.SqlServer.Management.Smo