ReplicationServer.EnumAgentProfiles(AgentType) ReplicationServer.EnumAgentProfiles(AgentType) Method

Definition

Returns the replication agent performance profiles supported on the server.

public:
 System::Collections::ArrayList ^ EnumAgentProfiles(Microsoft::SqlServer::Replication::AgentType agentType);
public System.Collections.ArrayList EnumAgentProfiles (Microsoft.SqlServer.Replication.AgentType agentType);

Parameters

agentType
AgentType AgentType

An AgentType enumeration value that indicates the type of agent profile to be returned.

Returns

Remarks

The EnumAgentProfiles method can only be called by members of the sysadmin fixed server role or members of the replmonitor fixed database role.

The EnumAgentProfiles method is equivalent to executing the sp_help_agent_profile (Transact-SQL) stored procedure.

Applies to