PullSubscription.AgentJobId プロパティ

定義

サブスクリプション同期に使われたエージェントジョブのIDを取得します。

public:
 property System::String ^ AgentJobId { System::String ^ get(); };
public string AgentJobId { get; }
member this.AgentJobId : string
Public ReadOnly Property AgentJobId As String

プロパティ値

SQL Server エージェントジョブID値を表すString値です。

注釈

<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)を実行するのと同等です。

適用対象