Table of Contents

Class SimpleDataProvider

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

A simple IDataProvider implementation using a dictionary.

public class SimpleDataProvider : IDataProvider
Inheritance
SimpleDataProvider
Implements
Inherited Members

Constructors

SimpleDataProvider(IDictionary<string, string>)

Initializes a new instance.

public SimpleDataProvider(IDictionary<string, string> values)

Parameters

values IDictionary<string, string>

A dictionary holding variable names and their values.

Properties

VariableNames

Gets a collection of all available variable names.

public ICollection<CaseInsensitiveString> VariableNames { get; }

Property Value

ICollection<CaseInsensitiveString>

Methods

GetValue(CaseInsensitiveString)

Gets the value of the specified variable.

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

Currently not supported.

public void SetValue(CaseInsensitiveString variableName, string value)

Parameters

variableName CaseInsensitiveString

Not used.

value string

Not used.

Remarks

Always throws a NotSupportedException.

Exceptions

NotSupportedException

Always.