Class Config
Represents a TileDB config object.
Namespace: TileDB.CSharp
Assembly: TileDB.CSharp.dll
Syntax
public sealed class Config : IDisposable, IEnumerable<KeyValuePair<string, string>>, IEnumerable
Constructors
| Edit this page View SourceConfig()
Creates a Config.
Declaration
public Config()
Methods
| Edit this page View SourceCmp(ref Config)
Checks if two Configs have the same content.
Declaration
public bool Cmp(ref Config other)
Parameters
Type | Name | Description |
---|---|---|
Config | other | The config to compare this one with. |
Returns
Type | Description |
---|---|
bool |
Dispose()
Disposes this Config.
Declaration
public void Dispose()
EnumerateOptions(string)
Enumerates the config's options that start with a specific prefix.
Declaration
public IEnumerable<KeyValuePair<string, string>> EnumerateOptions(string prefix)
Parameters
Type | Name | Description |
---|---|---|
string | prefix | The prefix of the options to enumerate. |
Returns
Type | Description |
---|---|
IEnumerable<KeyValuePair<string, string>> |
Get(string)
Gets the value of a parameter.
Declaration
public string Get(string param)
Parameters
Type | Name | Description |
---|---|---|
string | param | The parameter's name |
Returns
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
ArgumentException |
|
GetEnumerator()
Enumerates the config's options.
Declaration
public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<KeyValuePair<string, string>> |
Iterate(string)
Gets a ConfigIterator that enumerates over all options whose parameter namess start with a given prefix.
Declaration
public ConfigIterator Iterate(string prefix)
Parameters
Type | Name | Description |
---|---|---|
string | prefix | The parameters' name's prefix. |
Returns
Type | Description |
---|---|
ConfigIterator |
LoadFromFile(string)
Loads the options from a file.
Declaration
public void LoadFromFile(string filename)
Parameters
Type | Name | Description |
---|---|---|
string | filename | The file's name. |
Exceptions
Type | Condition |
---|---|
ArgumentException |
|
SaveToFile(string)
Saves the options from a file.
Declaration
public void SaveToFile(string filename)
Parameters
Type | Name | Description |
---|---|---|
string | filename | The file's name. |
Exceptions
Type | Condition |
---|---|
ArgumentException |
|
Set(string, string)
Sets a parameter.
Declaration
public void Set(string param, string value)
Parameters
Type | Name | Description |
---|---|---|
string | param | The parameter's name. |
string | value | The parameter's value. |
Exceptions
Type | Condition |
---|---|
ArgumentException |
|
Unset(string)
Unsets a parameter.
Declaration
public void Unset(string param)
Parameters
Type | Name | Description |
---|---|---|
string | param | The parameter's name. |
Exceptions
Type | Condition |
---|---|
ArgumentException |
|