ReplicationMonitor Members

Monitors a replication server.

The following tables list the members exposed by the ReplicationMonitor type.

Public Constructors

  名称 Description
ReplicationMonitor Overloaded. Creates a new instance of the ReplicationMonitor class.

顶部

Public Properties

  名称 Description
ms158320.pubproperty(zh-cn,SQL.90).gif CachePropertyChanges  Gets or sets whether to cache changes made to the replication properties or to apply them immediately. (inherited from ReplicationObject)
ms158320.pubproperty(zh-cn,SQL.90).gif CacheRefreshPolicy  
ms158320.pubproperty(zh-cn,SQL.90).gif ConnectionContext  Gets or sets the connection to an instance of Microsoft SQL Server. (inherited from ReplicationObject)
ms158320.pubproperty(zh-cn,SQL.90).gif ExcludeAnonymousSubscriptions Gets whether or not information on anonymous subscriptions is returned.
ms158320.pubproperty(zh-cn,SQL.90).gif IsExistingObject  Gets whether the object exists on the server or not. (inherited from ReplicationObject)
ms158320.pubproperty(zh-cn,SQL.90).gif Name Gets the name of the instance of Microsoft SQL Server that is currently connected.
ms158320.pubproperty(zh-cn,SQL.90).gif PublisherMonitors Gets a collection of PublisherMonitor objects that are used to monitor Publishers that use a monitored Distributor.
ms158320.pubproperty(zh-cn,SQL.90).gif SqlServerName  Gets the name of the Microsoft SQL Server instance to which this object is connected. (inherited from ReplicationObject)
ms158320.pubproperty(zh-cn,SQL.90).gif Status Gets the overall status of replication on the Distributor, including all Publishers that use the Distributor.
ms158320.pubproperty(zh-cn,SQL.90).gif UserData  Gets or sets an object property that allows users to attach their own data to the object. (inherited from ReplicationObject)

顶部

Public Methods

(see also Protected Methods )

  名称 Description
ms158320.pubmethod(zh-cn,SQL.90).gif CommitPropertyChanges  Sends all the cached property change statements to the instance of Microsoft SQL Server. (inherited from ReplicationObject)
ms158320.pubmethod(zh-cn,SQL.90).gif Decouple  Decouples the referenced replication object from the server. (inherited from ReplicationObject)
ms158320.pubmethod(zh-cn,SQL.90).gif EnumDistributionAgents Returns information on Distribution Agent jobs at the monitored Distributor.
ms158320.pubmethod(zh-cn,SQL.90).gif EnumErrorRecords Returns information on errors associated with a specified error ID that occurred during a synchronization session.
ms158320.pubmethod(zh-cn,SQL.90).gif EnumLogReaderAgents Returns information on Log Reader Agent jobs at the monitored Distributor.
ms158320.pubmethod(zh-cn,SQL.90).gif EnumMergeAgents Returns information on Merge Agent jobs at the monitored Distributor.
ms158320.pubmethod(zh-cn,SQL.90).gif EnumMiscellaneousAgents Returns information on jobs for miscellaneous replication agents at the monitored Distributor.
ms158320.pubmethod(zh-cn,SQL.90).gif EnumPublishers Returns information on the Publishers that use the monitored Distributor.
ms158320.pubmethod(zh-cn,SQL.90).gif EnumPublishers2 Returns a list of Publishers that use the currently connected server as the Distributor.
ms158320.pubmethod(zh-cn,SQL.90).gif EnumQueueReaderAgents Returns information on Queue Reader Agent jobs at the monitored Distributor.
ms158320.pubmethod(zh-cn,SQL.90).gif EnumQueueReaderAgentSessionDetails Returns detailed information about a Queue Reader Agent session.
ms158320.pubmethod(zh-cn,SQL.90).gif EnumQueueReaderAgentSessions Returns a list of information about the Queue Reader Agent sessions, including status and statistical information.
ms158320.pubmethod(zh-cn,SQL.90).gif EnumSnapshotAgents Returns information on Snapshot Agent jobs at the monitored Distributor.
ms158320.pubmethod(zh-cn,SQL.90).gif Equals  Overloaded. (inherited from Object )
ms158320.pubmethod(zh-cn,SQL.90).gif GetHashCode  (inherited from Object )
ms158320.pubmethod(zh-cn,SQL.90).gif GetType  (inherited from Object )
ms158320.pubmethod(zh-cn,SQL.90).gif Load  Loads the properties of an existing object from the server. (inherited from ReplicationObject)
ms158320.pubmethod(zh-cn,SQL.90).gif LoadProperties  Loads the properties of an existing object from the server. (inherited from ReplicationObject)
ms158320.pubmethod(zh-cn,SQL.90).gifms158320.static(zh-cn,SQL.90).gif ReferenceEquals  (inherited from Object )
ms158320.pubmethod(zh-cn,SQL.90).gif Refresh  Reloads the properties of the object. (inherited from ReplicationObject)
ms158320.pubmethod(zh-cn,SQL.90).gif StatusOf Returns the overall status for replication agents at the monitored Distributor by agent type.
ms158320.pubmethod(zh-cn,SQL.90).gif ToString  (inherited from Object )

顶部

Protected Methods

  名称 Description
ms158320.protmethod(zh-cn,SQL.90).gif CheckValidCreation  (inherited from ReplicationObject )
ms158320.protmethod(zh-cn,SQL.90).gif CheckValidDefinition  (inherited from ReplicationObject )
ms158320.protmethod(zh-cn,SQL.90).gif Finalize  (inherited from Object )
ms158320.protmethod(zh-cn,SQL.90).gif GetChangeCommand  (inherited from ReplicationObject )
ms158320.protmethod(zh-cn,SQL.90).gif GetCreateCommand  (inherited from ReplicationObject )
ms158320.protmethod(zh-cn,SQL.90).gif GetDropCommand  (inherited from ReplicationObject )
ms158320.protmethod(zh-cn,SQL.90).gif InternalRefresh  (inherited from ReplicationObject )
ms158320.protmethod(zh-cn,SQL.90).gif MemberwiseClone  (inherited from Object )

顶部

请参阅

参考

ReplicationMonitor Class
Microsoft.SqlServer.Replication Namespace

其他资源

How to: Programmatically Monitor Replication (RMO Programming)