The ChangeAgentParameter method modifies a replication agent profile parameter.
object.ChangeAgentParameter( lProfileID , bstrParameterName ,
bstrParameterValue )
object
Expression that evaluates to an object in the Applies To list
lProfileID
Long integer that identifies a replication agent profile
bstrParameter
Name
String that specifies a profile parameter by name
bstrParameter
Value
String that provides a new value for the parameter
HRESULT ChangeAgentParameter(long lProfileID,
SQLDMO_LPCSTR szParameterName, SQLDMO_LPCSTR szParameterValue);