DatabaseReplicaState-Klasse

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.

Vererbungshierarchie

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 (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
Public NotInheritable Class DatabaseReplicaState _
    Inherits SqlSmoObject
'Usage
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

Der DatabaseReplicaState-Typ macht folgende Elemente verfügbar.

Eigenschaften

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

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Discover Discovers a list of type Object. (Geerbt von SqlSmoObject.)
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode FormatSqlVariant Formats an object as SqlVariant type. (Geerbt von SqlSmoObject.)
Geschützte Methode GetContextDB Gets the context database that is associated with this object. (Geerbt von SqlSmoObject.)
Geschützte Methode GetDBName Gets the database name that is associated with the object. (Geerbt von SqlSmoObject.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Geschützte Methode GetPropValue Gets a property value of the SqlSmoObject object. (Geerbt von SqlSmoObject.)
Geschützte Methode GetPropValueOptional Gets a property value of the SqlSmoObject object. (Geerbt von SqlSmoObject.)
Geschützte Methode GetPropValueOptionalAllowNull Gets a property value of the SqlSmoObject object. (Geerbt von SqlSmoObject.)
Geschützte Methode GetServerObject Gets the server of the SqlSmoObject object. (Geerbt von SqlSmoObject.)
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode Initialize() Initializes the object and forces the properties be loaded. (Geerbt von SqlSmoObject.)
Öffentliche Methode Initialize(Boolean) Initializes the object and forces the properties be loaded. (Geerbt von SqlSmoObject.)
Geschützte Methode IsObjectInitialized Verifies whether the object has been initialized. (Geerbt von SqlSmoObject.)
Geschützte Methode IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (Geerbt von SqlSmoObject.)
Öffentliche Methode Refresh Refreshes the object and retrieves properties when the object is next accessed. (Geerbt von SqlSmoObject.)
Geschützte Methode SetParentImpl Sets the parent of the SqlSmoObject to the newParent parameter. (Geerbt von SqlSmoObject.)
Öffentliche Methode ToString Returns a String that represents the referenced object. (Geerbt von SqlSmoObject.)
Öffentliche Methode Validate Validates the state of an object. (Geerbt von SmoObjectBase.)

Zum Anfang

Ereignisse

  Name Beschreibung
Öffentliches Ereignis PropertyChanged Represents the event that occurs when a property is changed. (Geerbt von SqlSmoObject.)
Öffentliches Ereignis PropertyMetadataChanged Represents the event that occurs when property metadata changes. (Geerbt von SqlSmoObject.)

Zum Anfang

Explizite Schnittstellenimplementierungen

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.Discover Discovers any dependencies. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.GetDomainRoot Returns the root of the domain. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.GetParent Gets the parent of this object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.GetPropertyType Gets the type of the specified property. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.GetPropertyValue Gets the value of the specified property. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.GetUrn Gets the Unified Resource Name (URN) of the object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.Resolve Gets the instance that contains the information about the object from the Unified Resource Name (URN) of the object. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.SetObjectState Sets the object state to the specified SfcObjectState value. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.SetPropertyValue Sets the property value. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcPropertyProvider.GetPropertySet Gets the interface reference to the set of properties of this object. (Geerbt von SqlSmoObject.)

Zum Anfang

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Smo-Namespace