Partager via


Classe PublisherMonitor

Monitors a replication Publisher.

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Replication
Assembly :  Microsoft.SqlServer.Rmo (en Microsoft.SqlServer.Rmo.dll)

Syntaxe

'Déclaration
Public NotInheritable Class PublisherMonitor _
    Inherits ReplicationObject
'Utilisation
Dim instance As PublisherMonitor
public sealed class PublisherMonitor : ReplicationObject
public ref class PublisherMonitor sealed : public ReplicationObject
[<SealedAttribute>]
type PublisherMonitor =  
    class
        inherit ReplicationObject
    end
public final class PublisherMonitor extends ReplicationObject

Le type PublisherMonitor expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique PublisherMonitor() () () () Creates a new instance of the PublisherMonitor class.
Méthode publique PublisherMonitor(String, ServerConnection) Creates a new instance of the PublisherMonitor class with the specified name and a connection to the Distributor.

Haut de la page

Propriétés

  Nom Description
Propriété publique CachePropertyChanges Gets or sets whether to cache changes made to the replication properties or to apply them immediately. (hérité de ReplicationObject.)
Propriété publique CacheRefreshPolicy Infrastructure.
Propriété publique ConnectionContext Gets or sets the connection to an instance of Microsoft SQL Server. (hérité de ReplicationObject.)
Propriété publique DistributionDatabase Gets the name of the distribution database used by the Publisher.
Propriété publique ExcludeAnonymousSubscriptions Gets whether or not information on anonymous subscriptions is returned.
Propriété publique IsExistingObject Gets whether the object exists on the server or not. (hérité de ReplicationObject.)
Propriété publique Name Gets the name of the Publisher.
Propriété publique PublicationMonitors Represents a collection of PublicationMonitor objects, each of which represents a publication defined at the Publisher being monitored.
Propriété publique PublisherType Gets the type of the database server that is the Publisher.
Propriété publique SqlServerName Gets the name of the Microsoft SQL Server instance to which this object is connected. (hérité de ReplicationObject.)
Propriété publique StatusAndWarning Gets status information and warnings for the monitored threshold metrics on the Publisher.
Propriété publique UserData Gets or sets an object property that allows users to attach their own data to the object. (hérité de ReplicationObject.)

Haut de la page

Méthodes

  Nom Description
Méthode protégée CheckValidCreation Infrastructure. (hérité de ReplicationObject.)
Méthode protégée CheckValidDefinition Infrastructure. (hérité de ReplicationObject.)
Méthode publique CommitPropertyChanges Sends all the cached property change statements to the instance of Microsoft SQL Server. (hérité de ReplicationObject.)
Méthode publique Decouple Decouples the referenced replication object from the server. (hérité de ReplicationObject.)
Méthode publique EnumDatabasePublications Returns information about publications that use a specified publication database.
Méthode publique EnumDatabaseSubscriptions Returns information on subscriptions that belong to publications that use a specified publication database.
Méthode publique EnumDistributionAgentSessionDetails Returns detailed information about a Distribution Agent session.
Méthode publique EnumDistributionAgentSessions Returns information about Distribution Agent sessions.
Méthode publique EnumErrorRecords Returns information on errors associated with a specified error ID that occurred during a synchronization session.
Méthode publique EnumLogReaderAgentSessionDetails Returns detailed information about a Log Reader Agent session.
Méthode publique EnumLogReaderAgentSessions Returns information about Log Reader Agent sessions.
Méthode publique EnumMergeAgentSessionDetails Returns detailed information about a Merge Agent session.
Méthode publique EnumMergeAgentSessionDetails2 Returns additional detailed information about a Merge Agent session.
Méthode publique EnumMergeAgentSessions Returns information about Merge Agent sessions.
Méthode publique EnumMergeAgentSessions2 Returns additional information about Merge Agent sessions.
Méthode publique EnumPublications Returns information on publications at a monitored Publisher.
Méthode publique EnumPublications2 Returns additional information on publications at a monitored Publisher.
Méthode publique EnumSnapshotAgentSessionDetails Returns detailed information about a Snapshot Agent session.
Méthode publique EnumSnapshotAgentSessions Returns information about Snapshot Agent sessions.
Méthode publique EnumSubscriptions Returns information about subscriptions that belong to a publication at the monitored Publisher.
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode protégée GetChangeCommand Infrastructure. (hérité de ReplicationObject.)
Méthode protégée GetCreateCommand Infrastructure. (hérité de ReplicationObject.)
Méthode protégée GetDropCommand Infrastructure. (hérité de ReplicationObject.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode protégée InternalRefresh Infrastructure. (hérité de ReplicationObject.)
Méthode publique Load Loads the properties of an existing object from the server. (hérité de ReplicationObject.)
Méthode publique LoadProperties Loads the properties of an existing object from the server. (hérité de ReplicationObject.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique Refresh Reloads the properties of the object. (hérité de ReplicationObject.)
Méthode publique ToString (hérité de Object.)

Haut de la page

Notes

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

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.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.