Класс AgentProfile

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

Иерархия наследования

System.Object
  Microsoft.SqlServer.Replication.ReplicationObject
    Microsoft.SqlServer.Replication.AgentProfile

Пространство имен:  Microsoft.SqlServer.Replication
Сборка:  Microsoft.SqlServer.Rmo (в Microsoft.SqlServer.Rmo.dll)

Синтаксис

'Декларация
Public NotInheritable Class AgentProfile _
    Inherits ReplicationObject
'Применение
Dim instance As AgentProfile
public sealed class AgentProfile : ReplicationObject
public ref class AgentProfile sealed : public ReplicationObject
[<SealedAttribute>]
type AgentProfile =  
    class 
        inherit ReplicationObject 
    end
public final class AgentProfile extends ReplicationObject

Тип AgentProfile обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод AgentProfile() Initializes a new instance of the AgentProfile class.
Открытый метод AgentProfile(Int32, ServerConnection) Initializes a new instance of the AgentProfile class with a specified agent profile ID value and server connection.
Открытый метод AgentProfile(String, ServerConnection) Initializes a new instance of the AgentProfile class with the specified profile name and server connection.

В начало

Свойства

  Имя Описание
Открытое свойство AgentType Gets or sets the type of replication agent for which the profile is intended.
Открытое свойство CachePropertyChanges Gets or sets whether to cache changes made to the replication properties or to apply them immediately. (Производный от ReplicationObject.)
Открытое свойство ConnectionContext Gets or sets the connection to an instance of Microsoft SQL Server. (Производный от ReplicationObject.)
Открытое свойство Default Specifies whether this profile is the default profile for the given replication agent type.
Открытое свойство Description Gets or sets a textual description of the replication agent profile.
Открытое свойство IsExistingObject Gets whether the object exists on the server or not. (Производный от ReplicationObject.)
Открытое свойство Name Gets or sets the name of the replication agent profile.
Открытое свойство ProfileId
Открытое свойство SqlServerName Gets the name of the Microsoft SQL Server instance to which this object is connected. (Производный от ReplicationObject.)
Открытое свойство Type Specifies whether the replication agent profile is pre-defined by replication or created by a user.
Открытое свойство UserData Gets or sets an object property that allows users to attach their own data to the object. (Производный от ReplicationObject.)

В начало

Методы

  Имя Описание
Открытый метод AddParameter Adds a parameter to the replication agent profile.
Открытый метод AssignToAgent Assigns the replication agent profile to a specific replication agent job.
Открытый метод ChangeParameter Changes the value of an existing replication agent parameter in the profile.
Открытый метод CommitPropertyChanges Sends all the cached property change statements to the instance of Microsoft SQL Server. (Производный от ReplicationObject.)
Открытый метод Create Creates the replication agent profile on the instance of SQL Server by using the current properties. 
Открытый метод Decouple Decouples the referenced replication object from the server. (Производный от ReplicationObject.)
Открытый метод EnumParameterInfo Returns information about parameters that can be set and that are available for the replication agent profile.
Открытый метод EnumParameters Returns all existing parameters that are set for the replication agent profile.
Открытый метод Equals (Производный от Object.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetType (Производный от Object.)
Открытый метод Load Loads the properties of an existing object from the server. (Производный от ReplicationObject.)
Открытый метод LoadProperties Loads the properties of an existing object from the server. (Производный от ReplicationObject.)
Открытый метод MakeDefault Sets the profile as the default profile for all replication agents of the same type.
Открытый метод Refresh Reloads the properties of the object. (Производный от ReplicationObject.)
Открытый метод Remove Removes an existing replication agent profile from the Distributor.
Открытый метод RemoveParameter Removes an existing parameter from the replication agent profile.
Открытый метод Script Generates a Transact-SQL script that can be used to re-create the agent profile.
Открытый метод ToString (Производный от Object.)

В начало

Замечания

Thread Safety

Public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.Replication

Другие ресурсы

Работа с профилями агента репликации (программирование объектов RMO)