Partager via


Méthode AgentProfile.ChangeParameter

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

Espace de noms :  Microsoft.SqlServer.Replication
Assembly :  Microsoft.SqlServer.Rmo (en Microsoft.SqlServer.Rmo.dll)

Syntaxe

'Déclaration
Public Sub ChangeParameter ( _
    name As String, _
    newValue As String _
)
'Utilisation
Dim instance As AgentProfile 
Dim name As String 
Dim newValue As String

instance.ChangeParameter(name, newValue)
public void ChangeParameter(
    string name,
    string newValue
)
public:
void ChangeParameter(
    String^ name, 
    String^ newValue
)
member ChangeParameter : 
        name:string * 
        newValue:string -> unit
public function ChangeParameter(
    name : String, 
    newValue : String
)

Paramètres

Notes

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).

Voir aussi

Référence

AgentProfile Classe

Espace de noms Microsoft.SqlServer.Replication

Autres ressources

Utiliser des profils d'agent de réplication (programmation RMO)