Classe RegisteredSubscriber

Represents a Subscriber that has been registered at a Publisher or a Distributor.

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.Replication.ReplicationObject
    Microsoft.SqlServer.Replication.RegisteredSubscriber

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

Syntaxe

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

Le type RegisteredSubscriber expose les membres suivants.

Constructeurs

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

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 ConnectionContext Gets or sets the connection to an instance of Microsoft SQL Server. (hérité de ReplicationObject.)
Propriété publique DefaultDistributionSchedule Gets the default schedule to be assigned to the Distribution Agent if it is not specified.
Propriété publique DefaultMergeSchedule Gets the default schedule to be assigned to the Merge Agent if it is not specified.
Propriété publique Description Gets or sets a textual description of the object.
Propriété publique DistributionDatabase Gets or sets the name of the distribution database that the distribution Publisher uses.
Propriété publique DistributionPublisher Gets or sets the name of the distribution Publisher to which the Subscriber is registered.
Propriété publique IsExistingObject Gets whether the object exists on the server or not. (hérité de ReplicationObject.)
Propriété publique Name Gets or sets the name of the registered Subscriber.
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 SubscriberSecurity Gets a security context that is used by the Distribution Agent or the Merge Agent to connect to this registered Subscriber.
Propriété publique Type Gets or sets the type of Subscriber.
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 publique CommitPropertyChanges Sends all the cached property change statements to the instance of Microsoft SQL Server. (hérité de ReplicationObject.)
Méthode publique Create Registers the Subscriber at the specified Publisher or Distributor.
Méthode publique Decouple Decouples the referenced replication object from the server. (hérité de ReplicationObject.)
Méthode publique Equals (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
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 publique Refresh Reloads the properties of the object. (hérité de ReplicationObject.)
Méthode publique Remove Removes the Subscriber registration represented by the object.
Méthode publique Script Returns a string containing a Transact-SQL creation or deletion script for the Microsoft SQL Server registered Subscriber on the server computer that the object represents.
Méthode publique ToString (hérité de Object.)

Haut de la page

Notes

In Microsoft SQL Server 2005, it is no longer required to explicitly register a Subscriber at the Publisher. The RegisteredSubscriber class is provided for backward compatibility with previous versions of SQL Server.

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.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Replication