FederationMessage.SetParameter Method (String, String)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Sets the value of a parameter in the parameters dictionary.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

public void SetParameter(
	string parameter,
	string value
)

Parameters

parameter
Type: System.String

The name of the parameter to set.

value
Type: System.String

The value to be assigned to the parameter.

Exception Condition
ArgumentException

parameter is null or an empty string.

-or-

value is null or an empty string.

If the parameter does not exist in the dictionary, it is added to it. The parameters dictionary is accessed through the Parameters property.

.NET Framework
Available since 4.5
Return to top
Show: