语言

AgentProfile.AgentType 属性

定义

获取或设置配置文件所针对的复制代理类型。

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 值。

注解

AgentType 属性是读写属性,必须在创建对象之前设置该属性。 一旦配置文件在服务器上创建,该属性就无法更改。

不支持设置 的 MiscellaneousAgents 值。

AgentType该属性只能由分发器中固定服务器角色的成员sysadmin或固定数据库角色的成员replmonitor检索。

AgentType该属性仅可由分发器中固定服务器角色的成员sysadmin在服务器创建新配置文件时设置。

检索 AgentType 相当于执行 sp_help_agent_profile(Transact-SQL)

设置 AgentType 和调用 Create 等同于执行 sp_add_agent_profile(Transact-SQL)

适用于

另请参阅