Condividi tramite


Classe RegisteredSubscriber

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

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

Sintassi

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

Nel tipo RegisteredSubscriber sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico RegisteredSubscriber() () () () Creates a new instance of the RegisteredSubscriber class.
Metodo pubblico RegisteredSubscriber(String, ServerConnection) Creates a new instance of the RegisteredSubscriber class with the specified name and specified connection to the Publisher.
Metodo pubblico 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.

In alto

Proprietà

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

In alto

Metodi

  Nome Descrizione
Metodo protetto CheckValidCreation Infrastruttura. Ereditato da ReplicationObject.
Metodo protetto CheckValidDefinition Infrastruttura. Ereditato da ReplicationObject.
Metodo pubblico CommitPropertyChanges Sends all the cached property change statements to the instance of Microsoft SQL Server. Ereditato da ReplicationObject.
Metodo pubblico Create Registers the Subscriber at the specified Publisher or Distributor.
Metodo pubblico Decouple Decouples the referenced replication object from the server. Ereditato da ReplicationObject.
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo protetto GetChangeCommand Infrastruttura. Ereditato da ReplicationObject.
Metodo protetto GetCreateCommand Infrastruttura. Ereditato da ReplicationObject.
Metodo protetto GetDropCommand Infrastruttura. Ereditato da ReplicationObject.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto InternalRefresh Infrastruttura. Ereditato da ReplicationObject.
Metodo pubblico Load Loads the properties of an existing object from the server. Ereditato da ReplicationObject.
Metodo pubblico LoadProperties Loads the properties of an existing object from the server. Ereditato da ReplicationObject.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico Refresh Reloads the properties of the object. Ereditato da ReplicationObject.
Metodo pubblico Remove Removes the Subscriber registration represented by the object.
Metodo pubblico 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.
Metodo pubblico ToString Ereditato da Object.

In alto

Osservazioni

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.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.