IConfigParameters

Namespace: Lithnet.Ecma2Framework

Represents a collection of configuration parameters provided by the Synchronization Service

public interface IConfigParameters

Properties

Parameters

Gets the raw configuration parameter dictionary as provided by the synchronization service

public abstract KeyedCollection<string, ConfigParameter> Parameters { get; }

Property Value

KeyedCollection<String, ConfigParameter>

Methods

GetBool(String, Boolean)

Gets a boolean value from the configuration parameter set

bool GetBool(string name, bool defaultValue)

Parameters

name Stringarrow-up-right The name of the configuration parameter

defaultValue Booleanarrow-up-right A value to provide if the key is not present or it's value is not present

Returns

Booleanarrow-up-right The value of the configuration parameter, or the default value if it doesn't exist

GetInt(String, Int32)

Gets an integer value from the configuration parameter set

Parameters

name Stringarrow-up-right The name of the configuration parameter

defaultValue Int32arrow-up-right A value to provide if the key is not present or it's value is not present

Returns

Int32arrow-up-right The value of the configuration parameter, or the default value if it doesn't exist

GetList(String, String)

Gets a list of string values from the configuration parameter set

Parameters

name Stringarrow-up-right The name of the configuration parameter

separator Stringarrow-up-right The character used a separator between string values

Returns

List<String>arrow-up-right The value of the configuration parameter, or the default value if it doesn't exist

GetLong(String, Int64)

Gets a long integer value from the configuration parameter set

Parameters

name Stringarrow-up-right The name of the configuration parameter

defaultValue Int64arrow-up-right A value to provide if the key is not present or it's value is not present

Returns

Int64arrow-up-right The value of the configuration parameter, or the default value if it doesn't exist

GetString(String)

Gets a string value from the configuration parameter set

Parameters

name Stringarrow-up-right The name of the configuration parameter

Returns

Stringarrow-up-right THe value of the configuration parameter, or null if the value doesn't exist

GetString(String, String)

Gets a string value from the configuration parameter set

Parameters

name Stringarrow-up-right The name of the configuration parameter

defaultValue Stringarrow-up-right A value to provide if the key is not present or it's value is not present

Returns

Stringarrow-up-right The value of the configuration parameter, or the default value if it doesn't exist

HasValue(String)

Determines if a configuration parameter exists

Parameters

name Stringarrow-up-right The name of the configuration parameter

Returns

Booleanarrow-up-right if the parameter is present, if it is not

Last updated