Table of Contents

Interface IDataProvider

Namespace
Ranorex.Core.Data
Assembly
Ranorex.Core.dll

An abstract data provider for variable binding.

public interface IDataProvider

Properties

VariableNames

Gets a collection of all available variable names.

ICollection<CaseInsensitiveString> VariableNames { get; }

Property Value

ICollection<CaseInsensitiveString>

Methods

GetValue(CaseInsensitiveString)

Gets the value of the specified variable.

string GetValue(CaseInsensitiveString variableName)

Parameters

variableName CaseInsensitiveString

The name of the variable.

Returns

string

The value of the variable, or null if the variable does not exist.

SetValue(CaseInsensitiveString, string)

Sets the value of the specified variable.

void SetValue(CaseInsensitiveString variableName, string value)

Parameters

variableName CaseInsensitiveString

The name of the variable.

value string

The value to set the variable to.

Exceptions

NotSupportedException

If setting variable values is not supported by the data provider.

DataException

If setting the variable value fails for any other reason, e.g. if the variable does not exist.