Export (0) Print
Expand All

PublisherMonitor Class

Monitors a replication Publisher.

Object
  Microsoft.SqlServer.Replication.ReplicationObject
    Microsoft.SqlServer.Replication.PublisherMonitor

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

public sealed class PublisherMonitor : ReplicationObject

The PublisherMonitor type exposes the following members.

  NameDescription
Public methodPublisherMonitor()Creates a new instance of the PublisherMonitor class.
Public methodPublisherMonitor(String, ServerConnection)Creates a new instance of the PublisherMonitor class with the specified name and a connection to the Distributor.
Top

  NameDescription
Public propertyCachePropertyChangesGets or sets whether to cache changes made to the replication properties or to apply them immediately. (Inherited from ReplicationObject.)
Public propertyCacheRefreshPolicyInfrastructure. Gets or sets the monitor cache refresh policy.
Public propertyConnectionContextGets or sets the connection to an instance of Microsoft SQL Server. (Inherited from ReplicationObject.)
Public propertyDistributionDatabaseGets the name of the distribution database used by the Publisher.
Public propertyExcludeAnonymousSubscriptionsGets whether or not information on anonymous subscriptions is returned.
Public propertyIsExistingObjectGets whether the object exists on the server or not. (Inherited from ReplicationObject.)
Public propertyNameGets the name of the Publisher.
Public propertyPublicationMonitorsRepresents a collection of PublicationMonitor objects, each of which represents a publication defined at the Publisher being monitored.
Public propertyPublisherTypeGets the type of the database server that is the Publisher.
Public propertySqlServerNameGets the name of the Microsoft SQL Server instance to which this object is connected. (Inherited from ReplicationObject.)
Public propertyStatusAndWarningGets status information and warnings for the monitored threshold metrics on the Publisher.
Public propertyUserDataGets or sets an object property that allows users to attach their own data to the object. (Inherited from ReplicationObject.)
Top

  NameDescription
Public methodCommitPropertyChangesSends all the cached property change statements to the instance of Microsoft SQL Server. (Inherited from ReplicationObject.)
Public methodDecoupleDecouples the referenced replication object from the server. (Inherited from ReplicationObject.)
Public methodEnumDatabasePublicationsReturns information about publications that use a specified publication database.
Public methodEnumDatabaseSubscriptionsReturns information on subscriptions that belong to publications that use a specified publication database.
Public methodEnumDistributionAgentSessionDetailsReturns detailed information about a Distribution Agent session.
Public methodEnumDistributionAgentSessionsReturns information about Distribution Agent sessions.
Public methodEnumErrorRecordsReturns information on errors associated with a specified error ID that occurred during a synchronization session.
Public methodEnumLogReaderAgentSessionDetailsReturns detailed information about a Log Reader Agent session.
Public methodEnumLogReaderAgentSessionsReturns information about Log Reader Agent sessions.
Public methodEnumMergeAgentSessionDetailsReturns detailed information about a Merge Agent session.
Public methodEnumMergeAgentSessionDetails2Returns additional detailed information about a Merge Agent session.
Public methodEnumMergeAgentSessionsReturns information about Merge Agent sessions.
Public methodEnumMergeAgentSessions2Returns additional information about Merge Agent sessions.
Public methodEnumPublicationsReturns information on publications at a monitored Publisher.
Public methodEnumPublications2Returns additional information on publications at a monitored Publisher.
Public methodEnumSnapshotAgentSessionDetailsReturns detailed information about a Snapshot Agent session.
Public methodEnumSnapshotAgentSessionsReturns information about Snapshot Agent sessions.
Public methodEnumSubscriptionsReturns information about subscriptions that belong to a publication at the monitored Publisher.
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodLoadLoads the properties of an existing object from the server. (Inherited from ReplicationObject.)
Public methodLoadPropertiesLoads the properties of an existing object from the server. (Inherited from ReplicationObject.)
Public methodRefreshReloads the properties of the object. (Inherited from ReplicationObject.)
Public methodToString (Inherited from Object.)
Top

Any method of PublisherMonitor will throw an exception if the Distributor is not installed and the distribution database does not exist.

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft