PullSubscription.AgentJobId 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取用于同步订阅的代理任务ID。
public:
property System::String ^ AgentJobId { System::String ^ get(); };
public string AgentJobId { get; }
member this.AgentJobId : string
Public ReadOnly Property AgentJobId As String
属性值
表示 String SQL Server 代理 作业 ID 值的值。
注解
该 <xref:Microsoft.SqlServer.Replication.PullSubscription.AgentJobID%2A> 属性是只读属性。
<xref:Microsoft.SqlServer.Replication.PullSubscription.AgentJobID%2A>该属性只能由订阅者中固定服务器角色的成员sysadmin或订阅数据库中固定数据库角色的成员db_owner检索。
取回 <xref:Microsoft.SqlServer.Replication.PullSubscription.AgentJobID%2A> 该属性等同于执行 sp_helppullsubscription(Transact-SQL) 或 sp_helpmergepullsubscription(Transact-SQL)。