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)

適用対象

こちらもご覧ください