共用方式為


PublicationMonitor 類別

Monitors a publication.

繼承階層

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

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)

語法

'宣告
Public NotInheritable Class PublicationMonitor _
    Inherits ReplicationObject
'用途
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

PublicationMonitor 型別公開下列成員。

建構函式

  名稱 說明
公用方法 PublicationMonitor() Creates a new instance of the PublicationMonitor class.
公用方法 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.

上層

屬性

  名稱 說明
公用屬性 CachePropertyChanges Gets or sets whether to cache changes made to the replication properties or to apply them immediately. (繼承自 ReplicationObject。)
公用屬性 CacheRefreshPolicy 基礎結構。Gets or sets the monitor cache refresh policy.
公用屬性 ConnectionContext Gets or sets the connection to an instance of Microsoft SQL Server. (繼承自 ReplicationObject。)
公用屬性 Description Gets the textual description of the publication.
公用屬性 DistributionDBName Gets the name of the distribution database used by the publication.
公用屬性 ExcludeAnonymousSubscriptions Gets or sets whether anonymous subscriptions are excluded from or included in the monitor results.
公用屬性 IsExistingObject Gets whether the object exists on the server or not. (繼承自 ReplicationObject。)
公用屬性 Name Gets or sets the name of the monitored publication.
公用屬性 PublicationDBName Gets or sets the name of the publication database.
公用屬性 PublisherName Gets or sets the name of the Publisher.
公用屬性 QueueReaderAgentName Gets the queue reader agent name.
公用屬性 SqlServerName Gets the name of the Microsoft SQL Server instance to which this object is connected. (繼承自 ReplicationObject。)
公用屬性 Status Gets the status of the publication.
公用屬性 StatusAndWarning Gets the status and warnings of the referenced publication on the Distributor, including all of the agents associated for the publication.
公用屬性 Type Gets the type of replication in which the publication participates.
公用屬性 UserData Gets or sets an object property that allows users to attach their own data to the object. (繼承自 ReplicationObject。)

上層

方法

  名稱 說明
公用方法 ChangeMonitorThreshold Changes the monitoring threshold metric for a publication.
公用方法 CleanUpTracerTokenHistory(DateTime) Removes all metadata for tracer tokens older than the specified date from a database published using transactional replication.
公用方法 CleanUpTracerTokenHistory(Int32) Removes metadata for a specific tracer token from a database published using transactional replication.
公用方法 CommitPropertyChanges Sends all the cached property change statements to the instance of Microsoft SQL Server. (繼承自 ReplicationObject。)
公用方法 Decouple Decouples the referenced replication object from the server. (繼承自 ReplicationObject。)
公用方法 EnumErrorRecords Returns information about errors associated with a specified error ID that occurred during a synchronization session.
公用方法 EnumLogReaderAgent Returns information for the Log Reader Agent job used by the monitored publication.
公用方法 EnumMonitorThresholds Returns the replication monitor thresholds defined for this publication.
公用方法 EnumQueueReaderAgent Returns information for the Queue Reader Agent job used by the monitored publication.
公用方法 EnumSnapshotAgent Returns information for the Snapshot Agent job used by the monitored publication.
公用方法 EnumSubscriptions Returns information on subscriptions that are subscribed to the monitored publication.
公用方法 EnumSubscriptions2 Returns additional information on subscriptions that are subscribed to the monitored publication.
公用方法 EnumTracerTokenHistory Returns Subscriber latency information for a single tracer token record inserted into a monitored transactional publication.
公用方法 EnumTracerTokens Returns all tracer tokens that have been inserted into the monitored transactional publication.
公用方法 Equals (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
公用方法 Load Loads the properties of an existing object from the server. (繼承自 ReplicationObject。)
公用方法 LoadProperties Loads the properties of an existing object from the server. (繼承自 ReplicationObject。)
公用方法 Refresh Reloads the properties of the object. (繼承自 ReplicationObject。)
公用方法 ToString (繼承自 Object。)
公用方法 TransPendingCommandInfo Returns information about pending commands for a subscription.

上層

備註

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.

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.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Replication 命名空間

其他資源

以程式設計方式監視複寫 (RMO 程式設計)