Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RegisteredSubscriber Class

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

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

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)
public sealed class RegisteredSubscriber : ReplicationObject

The RegisteredSubscriber type exposes the following members.

  NameDescription
Public methodRegisteredSubscriber()Creates a new instance of the RegisteredSubscriber class.
Public methodRegisteredSubscriber(String, ServerConnection)Creates a new instance of the RegisteredSubscriber class with the specified name and specified connection to the Publisher.
Public methodRegisteredSubscriber(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.
Top
  NameDescription
Public propertyCachePropertyChangesGets or sets whether to cache changes made to the replication properties or to apply them immediately. (Inherited from ReplicationObject.)
Public propertyConnectionContextGets or sets the connection to an instance of Microsoft SQL Server. (Inherited from ReplicationObject.)
Public propertyDefaultDistributionScheduleGets the default schedule to be assigned to the Distribution Agent if it is not specified.
Public propertyDefaultMergeScheduleGets the default schedule to be assigned to the Merge Agent if it is not specified.
Public propertyDescriptionGets or sets a textual description of the object.
Public propertyDistributionDatabaseGets or sets the name of the distribution database that the distribution Publisher uses.
Public propertyDistributionPublisherGets or sets the name of the distribution Publisher to which the Subscriber is registered.
Public propertyIsExistingObjectGets whether the object exists on the server or not. (Inherited from ReplicationObject.)
Public propertyNameGets or sets the name of the registered Subscriber.
Public propertySqlServerNameGets the name of the Microsoft SQL Server instance to which this object is connected. (Inherited from ReplicationObject.)
Public propertySubscriberSecurityGets a security context that is used by the Distribution Agent or the Merge Agent to connect to this registered Subscriber.
Public propertyTypeGets or sets the type of Subscriber.
Public propertyUserDataGets or sets an object property that allows users to attach their own data to the object. (Inherited from ReplicationObject.)
Top
  NameDescription
Public methodCommitPropertyChangesSends all the cached property change statements to the instance of Microsoft SQL Server. (Inherited from ReplicationObject.)
Public methodCreateRegisters the Subscriber at the specified Publisher or Distributor.
Public methodDecoupleDecouples the referenced replication object from the server. (Inherited from ReplicationObject.)
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodLoadLoads the properties of an existing object from the server. (Inherited from ReplicationObject.)
Public methodLoadPropertiesLoads the properties of an existing object from the server. (Inherited from ReplicationObject.)
Public methodRefreshReloads the properties of the object. (Inherited from ReplicationObject.)
Public methodRemoveRemoves the Subscriber registration represented by the object.
Public methodScriptReturns 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.
Public methodToString (Inherited from Object.)
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.