Share via


Clase PublicationMonitor

Monitors a publication.

Jerarquía de herencia

System. . :: . .Object
  Microsoft.SqlServer.Replication. . :: . .ReplicationObject
    Microsoft.SqlServer.Replication..::..PublicationMonitor

Espacio de nombres:  Microsoft.SqlServer.Replication
Ensamblado:  Microsoft.SqlServer.Rmo (en Microsoft.SqlServer.Rmo.dll)

Sintaxis

'Declaración
Public NotInheritable Class PublicationMonitor _
    Inherits ReplicationObject
'Uso
Dim instance As PublicationMonitor
public sealed class PublicationMonitor : ReplicationObject
public ref class PublicationMonitor sealed : public ReplicationObject
[<SealedAttribute>]
type PublicationMonitor =  
    class
        inherit ReplicationObject
    end
public final class PublicationMonitor extends ReplicationObject

El tipo PublicationMonitor expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público PublicationMonitor() () () () Creates a new instance of the PublicationMonitor class.
Método público PublicationMonitor(String, String, String, String, ServerConnection) Creates a new instance of the PublicationMonitor class with the specified name, distribution database, Publisher, publication database, and connection to the Distributor.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública CachePropertyChanges Gets or sets whether to cache changes made to the replication properties or to apply them immediately. (Se hereda de ReplicationObject.)
Propiedad pública CacheRefreshPolicy Infraestructura.
Propiedad pública ConnectionContext Gets or sets the connection to an instance of Microsoft SQL Server. (Se hereda de ReplicationObject.)
Propiedad pública Description Gets the textual description of the publication.
Propiedad pública DistributionDBName Gets the name of the distribution database used by the publication.
Propiedad pública ExcludeAnonymousSubscriptions Gets or sets whether anonymous subscriptions are excluded from or included in the monitor results.
Propiedad pública IsExistingObject Gets whether the object exists on the server or not. (Se hereda de ReplicationObject.)
Propiedad pública Name Gets or sets the name of the monitored publication.
Propiedad pública PublicationDBName Gets or sets the name of the publication database.
Propiedad pública PublisherName Gets or sets the name of the Publisher.
Propiedad pública QueueReaderAgentName
Propiedad pública SqlServerName Gets the name of the Microsoft SQL Server instance to which this object is connected. (Se hereda de ReplicationObject.)
Propiedad pública Status Gets the status of the publication.
Propiedad pública StatusAndWarning Gets the status and warnings of the referenced publication on the Distributor, including all of the agents associated for the publication.
Propiedad pública Type Gets the type of replication in which the publication participates.
Propiedad pública UserData Gets or sets an object property that allows users to attach their own data to the object. (Se hereda de ReplicationObject.)

Arriba

Métodos

  Nombre Descripción
Método público ChangeMonitorThreshold Changes the monitoring threshold metric for a publication.
Método protegido CheckValidCreation Infraestructura. (Se hereda de ReplicationObject.)
Método protegido CheckValidDefinition Infraestructura. (Se hereda de ReplicationObject.)
Método público CleanUpTracerTokenHistory(DateTime) Removes all metadata for tracer tokens older than the specified date from a database published using transactional replication.
Método público CleanUpTracerTokenHistory(Int32) Removes metadata for a specific tracer token from a database published using transactional replication.
Método público CommitPropertyChanges Sends all the cached property change statements to the instance of Microsoft SQL Server. (Se hereda de ReplicationObject.)
Método público Decouple Decouples the referenced replication object from the server. (Se hereda de ReplicationObject.)
Método público EnumErrorRecords Returns information about errors associated with a specified error ID that occurred during a synchronization session.
Método público EnumLogReaderAgent Returns information for the Log Reader Agent job used by the monitored publication.
Método público EnumMonitorThresholds Returns the replication monitor thresholds defined for this publication.
Método público EnumQueueReaderAgent Returns information for the Queue Reader Agent job used by the monitored publication.
Método público EnumSnapshotAgent Returns information for the Snapshot Agent job used by the monitored publication.
Método público EnumSubscriptions Returns information on subscriptions that are subscribed to the monitored publication.
Método público EnumSubscriptions2 Returns additional information on subscriptions that are subscribed to the monitored publication.
Método público EnumTracerTokenHistory Returns Subscriber latency information for a single tracer token record inserted into a monitored transactional publication.
Método público EnumTracerTokens Returns all tracer tokens that have been inserted into the monitored transactional publication.
Método público Equals (Se hereda de Object.)
Método protegido Finalize (Se hereda de Object.)
Método protegido GetChangeCommand Infraestructura. (Se hereda de ReplicationObject.)
Método protegido GetCreateCommand Infraestructura. (Se hereda de ReplicationObject.)
Método protegido GetDropCommand Infraestructura. (Se hereda de ReplicationObject.)
Método público GetHashCode (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método protegido InternalRefresh Infraestructura. (Se hereda de ReplicationObject.)
Método público Load Loads the properties of an existing object from the server. (Se hereda de ReplicationObject.)
Método público LoadProperties Loads the properties of an existing object from the server. (Se hereda de ReplicationObject.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método público Refresh Reloads the properties of the object. (Se hereda de ReplicationObject.)
Método público ToString (Se hereda de Object.)
Método público TransPendingCommandInfo Returns information about pending commands for a subscription.

Arriba

Comentarios

An exception will be thrown if the specified Distributor, distribution database, and Publisher are not configured for replication.

PublicationMonitor requires a connection to the Distributor.

This namespace, class, or member is supported only in version 2.0 of the .NET Framework.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.