Partager via


Membres AgentProfile

Encapsulates all operations on replication agent profiles, such as creating, deleting, adding, and removing parameters, and assigning specific profiles to certain agents.

Le type AgentProfile expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique AgentProfile() () () () Initializes a new instance of the AgentProfile class.
Méthode publique AgentProfile(Int32, ServerConnection) Initializes a new instance of the AgentProfile class with a specified agent profile ID value and server connection.
Méthode publique AgentProfile(String, ServerConnection) Initializes a new instance of the AgentProfile class with the specified profile name and server connection.

Haut de la page

Méthodes

  Nom Description
Méthode publique AddParameter Adds a parameter to the replication agent profile.
Méthode publique AssignToAgent Assigns the replication agent profile to a specific replication agent job.
Méthode publique ChangeParameter Changes the value of an existing replication agent parameter in the profile.
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 Create Creates the replication agent profile on the instance of SQL Server by using the current properties. 
Méthode publique Decouple Decouples the referenced replication object from the server. (Hérité de ReplicationObject.)
Méthode publique EnumParameterInfo Returns information about parameters that can be set and that are available for the replication agent profile.
Méthode publique EnumParameters Returns all existing parameters that are set for the replication agent profile.
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 publique MakeDefault Sets the profile as the default profile for all replication agents of the same type.
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 Remove Removes an existing replication agent profile from the Distributor.
Méthode publique RemoveParameter Removes an existing parameter from the replication agent profile.
Méthode publique Script Generates a Transact-SQL script that can be used to re-create the agent profile.
Méthode publique ToString (Hérité de Object.)

Haut de la page

Propriétés

  Nom Description
Propriété publique AgentType Gets or sets the type of replication agent for which the profile is intended.
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 Default Specifies whether this profile is the default profile for the given replication agent type.
Propriété publique Description Gets or sets a textual description of the replication agent profile.
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 replication agent profile.
Propriété publique ProfileId
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 Type Specifies whether the replication agent profile is pre-defined by replication or created by a user.
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