Interface IDataProvider
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
variableNameCaseInsensitiveStringThe name of the variable.
Returns
- string
The value of the variable, or
nullif the variable does not exist.
SetValue(CaseInsensitiveString, string)
Sets the value of the specified variable.
void SetValue(CaseInsensitiveString variableName, string value)
Parameters
variableNameCaseInsensitiveStringThe name of the variable.
valuestringThe 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.