> For the complete documentation index, see [llms.txt](https://docs.lithnet.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lithnet.io/ecma2-framework/v2.0/advanced/index/lithnet.ecma2framework.iconfigparameters.md).

# IConfigParameters

Namespace: Lithnet.Ecma2Framework

Represents a collection of configuration parameters provided by the Synchronization Service

```csharp
public interface IConfigParameters
```

## Properties

### **Parameters**

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

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

#### Property Value

KeyedCollection\<String, ConfigParameter><br>

## Methods

### **GetBool(String, Boolean)**

Gets a boolean value from the configuration parameter set

```csharp
bool GetBool(string name, bool defaultValue)
```

#### Parameters

`name` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)\
The name of the configuration parameter

`defaultValue` [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)\
A value to provide if the key is not present or it's value is not present

#### Returns

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)\
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

```csharp
int GetInt(string name, int defaultValue)
```

#### Parameters

`name` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)\
The name of the configuration parameter

`defaultValue` [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)\
A value to provide if the key is not present or it's value is not present

#### Returns

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)\
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

```csharp
List<string> GetList(string name, string separator)
```

#### Parameters

`name` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)\
The name of the configuration parameter

`separator` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)\
The character used a separator between string values

#### Returns

[List\<String>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1)\
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

```csharp
long GetLong(string name, long defaultValue)
```

#### Parameters

`name` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)\
The name of the configuration parameter

`defaultValue` [Int64](https://docs.microsoft.com/en-us/dotnet/api/system.int64)\
A value to provide if the key is not present or it's value is not present

#### Returns

[Int64](https://docs.microsoft.com/en-us/dotnet/api/system.int64)\
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

```csharp
string GetString(string name)
```

#### Parameters

`name` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)\
The name of the configuration parameter

#### Returns

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string)\
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

```csharp
string GetString(string name, string defaultValue)
```

#### Parameters

`name` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)\
The name of the configuration parameter

`defaultValue` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)\
A value to provide if the key is not present or it's value is not present

#### Returns

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string)\
The value of the configuration parameter, or the default value if it doesn't exist

### **HasValue(String)**

Determines if a configuration parameter exists

```csharp
bool HasValue(string name)
```

#### Parameters

`name` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)\
The name of the configuration parameter

#### Returns

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)\
if the parameter is present, if it is not


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.lithnet.io/ecma2-framework/v2.0/advanced/index/lithnet.ecma2framework.iconfigparameters.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
