AgentProfile.RemoveParameter(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes an existing parameter from the replication agent profile.
public:
void RemoveParameter(System::String ^ name);
public void RemoveParameter (string name);
member this.RemoveParameter : string -> unit
Public Sub RemoveParameter (name As String)
Parameters
Exceptions
When the profile represented by the object does not exist on the server.
When the name parameter is null
, contains null
characters, or is longer than 128-Unicode characters.
Remarks
Call EnumParameters to get a list of parameters that exist on the current profile.
The RemoveParameter method can be called only by members of the sysadmin
fixed server role on the Distributor.
Calling RemoveParameter is equivalent to executing sp_drop_agent_parameter (Transact-SQL).