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) と同じです。

適用対象

こちらもご覧ください