Subscription.AgentJobId プロパティ

定義

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

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

プロパティ値

エージェントの ID。

注釈

<xref:Microsoft.SqlServer.Replication.Subscription.AgentJobID%2A> プロパティは、読み取り専用のプロパティです。

このプロパティは <xref:Microsoft.SqlServer.Replication.Subscription.AgentJobID%2A> 、パブリッシャーの sysadmin 固定サーバー ロールのメンバー、パブリケーション データベースの固定データベース ロール db_owner のメンバー、またはサブスクリプションを作成したユーザーのみが取得できます。

プロパティの <xref:Microsoft.SqlServer.Replication.Subscription.AgentJobID%2A> 取得は、 sp_helpsubscription または sp_helpmergesubscriptionの実行と同じです。

適用対象