共用方式為


AgentProfile.ChangeParameter(String, String) Method

Definition

Changes the value of an existing replication agent parameter in the profile.

public:
 void ChangeParameter(System::String ^ name, System::String ^ newValue);
public void ChangeParameter (string name, string newValue);
member this.ChangeParameter : string * string -> unit
Public Sub ChangeParameter (name As String, newValue As String)

Parameters

name
String

A String that specifies the name of the parameter.

newValue
String

A String that specifies the new value for the parameter.

Remarks

The ChangeParameter method can be called only by members of the sysadmin fixed server role at the Distributor.

Calling ChangeParameter is equivalent to executing sp_change_agent_parameter (Transact-SQL).

Applies to

See also