Share via


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);
member this.EnumAgentProfiles : Microsoft.SqlServer.Replication.AgentType -> System.Collections.ArrayList
Public Function EnumAgentProfiles (agentType As AgentType) As ArrayList

Parameters

agentType
AgentType

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

Returns

An ArrayList of AgentProfile objects.

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