ReplicationServer.EnumAgentProfiles(AgentType) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回伺服器上所支援的複寫代理程式效能設定檔。
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
參數
傳回
ArrayList 物件的 AgentProfile。
備註
EnumAgentProfiles只有系統管理員(sysadmin)固定伺服器角色的成員或 replmonitor 固定資料庫角色的成員,才能呼叫此方法。
EnumAgentProfiles方法相當於執行Sp_help_agent_profile (transact-sql) 預存程式。