AgentProfile.EnumParameters Method

Definition

Returns all existing parameters that are set for the replication agent profile.

public:
 System::Collections::ArrayList ^ EnumParameters();
public System.Collections.ArrayList EnumParameters ();
member this.EnumParameters : unit -> System.Collections.ArrayList
Public Function EnumParameters () As ArrayList

Returns

An ArrayList of AgentProfileParameter objects.

Exceptions

When the profile represented by the object does not exist on the server.

Remarks

The EnumParameters method can be called only by members of the sysadmin fixed server role at the Distributor and by members of the replmonitor fixed database role on a database at the Distributor.

Calling EnumParameters is equivalent to executing sp_help_agent_parameter (Transact-SQL).

Applies to