Click or drag to resize
Ranorex

IDataProviderSetValue Method

Sets the value of the specified variable.

Namespace:  Ranorex.Core.Data
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
void SetValue(
	CaseInsensitiveString variableName,
	string value
)

Parameters

variableName
Type: CaseInsensitiveString
The name of the variable.
value
Type: SystemString
The value to set the variable to.
Exceptions
ExceptionCondition
NotSupportedExceptionIf setting variable values is not supported by the data provider.
DataExceptionIf setting the variable value fails for any other reason, e.g. if the variable does not exist.
See Also