Monitors a publication.
The following tables list the members exposed by the PublicationMonitor type.
Public Constructors
| 名称 | Description | |
|---|---|---|
| PublicationMonitor | Overloaded. Creates a new instance of the PublicationMonitor class. | 
顶部
Public Properties
| 名称 | Description | |
|---|---|---|
| .gif) | CachePropertyChanges | Gets or sets whether to cache changes made to the replication properties or to apply them immediately. (inherited from ReplicationObject) | 
| .gif) | CacheRefreshPolicy | |
| .gif) | ConnectionContext | Gets or sets the connection to an instance of Microsoft SQL Server. (inherited from ReplicationObject) | 
| .gif) | Description | Gets the textual description of the publication. | 
| .gif) | DistributionDBName | Gets the name of the distribution database used by the publication. | 
| .gif) | ExcludeAnonymousSubscriptions | Gets or sets whether anonymous subscriptions are excluded from or included in the monitor results. | 
| .gif) | IsExistingObject | Gets whether the object exists on the server or not. (inherited from ReplicationObject) | 
| .gif) | Name | Gets or sets the name of the monitored publication. | 
| .gif) | PublicationDBName | Gets or sets the name of the publication database. | 
| .gif) | PublisherName | Gets or sets the name of the Publisher. | 
| .gif) | QueueReaderAgentName | |
| .gif) | SqlServerName | Gets the name of the Microsoft SQL Server instance to which this object is connected. (inherited from ReplicationObject) | 
| .gif) | Status | Gets the status of the publication. | 
| .gif) | StatusAndWarning | Gets the status and warnings of the referenced publication on the Distributor, including all of the agents associated for the publication. | 
| .gif) | Type | Gets the type of replication in which the publication participates. | 
| .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 | |
|---|---|---|
| .gif) | ChangeMonitorThreshold | Changes the monitoring threshold metric for a publication. | 
| .gif) | CleanUpTracerTokenHistory | Overloaded. Removes metadata for tracer tokens from a database published using transactional replication. | 
| .gif) | CommitPropertyChanges | Sends all the cached property change statements to the instance of Microsoft SQL Server. (inherited from ReplicationObject) | 
| .gif) | Decouple | Decouples the referenced replication object from the server. (inherited from ReplicationObject) | 
| .gif) | EnumErrorRecords | Returns information about errors associated with a specified error ID that occurred during a synchronization session. | 
| .gif) | EnumLogReaderAgent | Returns information for the Log Reader Agent job used by the monitored publication. | 
| .gif) | EnumMonitorThresholds | Returns the replication monitor thresholds defined for this publication. | 
| .gif) | EnumQueueReaderAgent | Returns information for the Queue Reader Agent job used by the monitored publication. | 
| .gif) | EnumSnapshotAgent | Returns information for the Snapshot Agent job used by the monitored publication. | 
| .gif) | EnumSubscriptions | Returns information on subscriptions that are subscribed to the monitored publication. | 
| .gif) | EnumSubscriptions2 | Returns additional information on subscriptions that are subscribed to the monitored publication. | 
| .gif) | EnumTracerTokenHistory | Returns Subscriber latency information for a single tracer token record inserted into a monitored transactional publication. | 
| .gif) | EnumTracerTokens | Returns all tracer tokens that have been inserted into the monitored transactional publication. | 
| .gif) | Equals | Overloaded. (inherited from Object ) | 
| .gif) | GetHashCode | (inherited from Object ) | 
| .gif) | GetType | (inherited from Object ) | 
| .gif) | Load | Loads the properties of an existing object from the server. (inherited from ReplicationObject) | 
| .gif) | LoadProperties | Loads the properties of an existing object from the server. (inherited from ReplicationObject) | 
| .gif) .gif) | ReferenceEquals | (inherited from Object ) | 
| .gif) | Refresh | Reloads the properties of the object. (inherited from ReplicationObject) | 
| .gif) | ToString | (inherited from Object ) | 
| .gif) | TransPendingCommandInfo | Returns information about pending commands for a subscription. | 
顶部
Protected Methods
| 名称 | Description | |
|---|---|---|
| .gif) | CheckValidCreation | (inherited from ReplicationObject ) | 
| .gif) | CheckValidDefinition | (inherited from ReplicationObject ) | 
| .gif) | Finalize | (inherited from Object ) | 
| .gif) | GetChangeCommand | (inherited from ReplicationObject ) | 
| .gif) | GetCreateCommand | (inherited from ReplicationObject ) | 
| .gif) | GetDropCommand | (inherited from ReplicationObject ) | 
| .gif) | InternalRefresh | (inherited from ReplicationObject ) | 
| .gif) | MemberwiseClone | (inherited from Object ) | 
顶部
请参阅
参考
PublicationMonitor Class
Microsoft.SqlServer.Replication Namespace
其他资源
How to: Programmatically Monitor Replication (RMO Programming)