AgentProfile.AgentType 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置配置文件所针对的复制代理类型。
public:
property Microsoft::SqlServer::Replication::AgentType AgentType { Microsoft::SqlServer::Replication::AgentType get(); void set(Microsoft::SqlServer::Replication::AgentType value); };
public Microsoft.SqlServer.Replication.AgentType AgentType { get; set; }
member this.AgentType : Microsoft.SqlServer.Replication.AgentType with get, set
Public Property AgentType As AgentType
属性值
一个 AgentType 指定复制代理类型的对象值。
例外
注解
该 AgentType 属性是读写属性,必须在创建对象之前设置该属性。 一旦配置文件在服务器上创建,该属性就无法更改。
不支持设置 的 MiscellaneousAgents 值。
AgentType该属性只能由分发器中固定服务器角色的成员sysadmin或固定数据库角色的成员replmonitor检索。
AgentType该属性仅可由分发器中固定服务器角色的成员sysadmin在服务器创建新配置文件时设置。
检索 AgentType 相当于执行 sp_help_agent_profile(Transact-SQL)。
设置 AgentType 和调用 Create 等同于执行 sp_add_agent_profile(Transact-SQL)。