ReplicationServer.EnumAgentProfiles(AgentType) 方法

定義

傳回伺服器上所支援的複寫代理程式效能設定檔。

public:
 System::Collections::ArrayList ^ EnumAgentProfiles(Microsoft::SqlServer::Replication::AgentType agentType);
public System.Collections.ArrayList EnumAgentProfiles (Microsoft.SqlServer.Replication.AgentType agentType);
member this.EnumAgentProfiles : Microsoft.SqlServer.Replication.AgentType -> System.Collections.ArrayList
Public Function EnumAgentProfiles (agentType As AgentType) As ArrayList

參數

agentType
AgentType

AgentType 列舉值,指出要傳回的代理程式設定檔類型。

傳回

ArrayList

ArrayList 物件的 AgentProfile

備註

EnumAgentProfiles只有系統管理員(sysadmin)固定伺服器角色的成員或 replmonitor 固定資料庫角色的成員,才能呼叫此方法。

EnumAgentProfiles方法相當於執行Sp_help_agent_profile (transact-sql) 預存程式。

適用於