FederationMessage.SetParameter(String, String) Método

Definição

Define o valor de um parâmetro do dicionário de parâmetros.Sets the value of a parameter in the parameters dictionary.

public:
 void SetParameter(System::String ^ parameter, System::String ^ value);
public void SetParameter (string parameter, string value);
member this.SetParameter : string * string -> unit
Public Sub SetParameter (parameter As String, value As String)

Parâmetros

parameter
String

O nome do parâmetro a ser definido.The name of the parameter to set.

value
String

O valor a ser atribuído ao parâmetro.The value to be assigned to the parameter.

Exceções

parameter é null ou é uma cadeia de caracteres vazia.parameter is null or an empty string.

- ou --or- value é null ou é uma cadeia de caracteres vazia.value is null or an empty string.

Comentários

Se o parâmetro não existir no dicionário, ele será adicionado a ele.If the parameter does not exist in the dictionary, it is added to it. O dicionário de parâmetros é acessado por meio da Parameters propriedade.The parameters dictionary is accessed through the Parameters property.

Aplica-se a