Freigeben über


RegisteredSubscriber-Klasse

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

Vererbungshierarchie

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

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

Syntax

'Declaration
Public NotInheritable Class RegisteredSubscriber _
    Inherits ReplicationObject
'Usage
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

Der RegisteredSubscriber-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode RegisteredSubscriber() () () () Creates a new instance of the RegisteredSubscriber class.
Öffentliche Methode RegisteredSubscriber(String, ServerConnection) Creates a new instance of the RegisteredSubscriber class with the specified name and specified connection to the Publisher.
Öffentliche Methode 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.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft CachePropertyChanges Gets or sets whether to cache changes made to the replication properties or to apply them immediately. (Geerbt von ReplicationObject.)
Öffentliche Eigenschaft ConnectionContext Gets or sets the connection to an instance of Microsoft SQL Server. (Geerbt von ReplicationObject.)
Öffentliche Eigenschaft DefaultDistributionSchedule Gets the default schedule to be assigned to the Distribution Agent if it is not specified.
Öffentliche Eigenschaft DefaultMergeSchedule Gets the default schedule to be assigned to the Merge Agent if it is not specified.
Öffentliche Eigenschaft Description Gets or sets a textual description of the object.
Öffentliche Eigenschaft DistributionDatabase Gets or sets the name of the distribution database that the distribution Publisher uses.
Öffentliche Eigenschaft DistributionPublisher Gets or sets the name of the distribution Publisher to which the Subscriber is registered.
Öffentliche Eigenschaft IsExistingObject Gets whether the object exists on the server or not. (Geerbt von ReplicationObject.)
Öffentliche Eigenschaft Name Gets or sets the name of the registered Subscriber.
Öffentliche Eigenschaft SqlServerName Gets the name of the Microsoft SQL Server instance to which this object is connected. (Geerbt von ReplicationObject.)
Öffentliche Eigenschaft SubscriberSecurity Gets a security context that is used by the Distribution Agent or the Merge Agent to connect to this registered Subscriber.
Öffentliche Eigenschaft Type Gets or sets the type of Subscriber.
Öffentliche Eigenschaft UserData Gets or sets an object property that allows users to attach their own data to the object. (Geerbt von ReplicationObject.)

Zum Anfang

Methoden

  Name Beschreibung
Geschützte Methode CheckValidCreation Infrastruktur (Geerbt von ReplicationObject.)
Geschützte Methode CheckValidDefinition Infrastruktur (Geerbt von ReplicationObject.)
Öffentliche Methode CommitPropertyChanges Sends all the cached property change statements to the instance of Microsoft SQL Server. (Geerbt von ReplicationObject.)
Öffentliche Methode Create Registers the Subscriber at the specified Publisher or Distributor.
Öffentliche Methode Decouple Decouples the referenced replication object from the server. (Geerbt von ReplicationObject.)
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Geschützte Methode GetChangeCommand Infrastruktur (Geerbt von ReplicationObject.)
Geschützte Methode GetCreateCommand Infrastruktur (Geerbt von ReplicationObject.)
Geschützte Methode GetDropCommand Infrastruktur (Geerbt von ReplicationObject.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode InternalRefresh Infrastruktur (Geerbt von ReplicationObject.)
Öffentliche Methode Load Loads the properties of an existing object from the server. (Geerbt von ReplicationObject.)
Öffentliche Methode LoadProperties Loads the properties of an existing object from the server. (Geerbt von ReplicationObject.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode Refresh Reloads the properties of the object. (Geerbt von ReplicationObject.)
Öffentliche Methode Remove Removes the Subscriber registration represented by the object.
Öffentliche Methode 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.
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Hinweise

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.

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.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.