---
title: "Class DataSourceValueBase"
slug: "sdk--stylelabs.m.sdk.models.base.datasources.datasourcevaluebase"
abstract: ""
---
# Class DataSourceValueBase

Values for a [IDataSource](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.base.idatasource.html). Also known as 'option list value'.

## Inheritance

object

DataSourceValueBase

[FlatDataSourceValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.models.base.datasources.flatdatasourcevalue.html)

[HierarchicalDataSourceValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.models.base.datasources.hierarchicaldatasourcevalue.html)

## Implements

[IDataSourceValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.base.idatasourcevalue.html)

## Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsBaseDataSources

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public abstract class DataSourceValueBase : IDataSourceValue
```

## Constructors

### DataSourceValueBase(string, IDictionary<CultureInfo, string>)

Initializes a new instance of the [DataSourceValueBase](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.models.base.datasources.datasourcevaluebase.html) class.

#### Declaration

```csharp
protected DataSourceValueBase(string identifier, IDictionary<CultureInfo, string> labels)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | identifier | The identifier. |
| IDictionary<, >CultureInfostring | labels | The labels. |

### DataSourceValueBase(string)

Initializes a new instance of the [DataSourceValueBase](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.models.base.datasources.datasourcevaluebase.html) class.

#### Declaration

```csharp
protected DataSourceValueBase(string identifier)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | identifier | The identifier. |

## Properties

### Identifier

Gets the name of the value. Because it is used as an identifier, it needs to be unique.

#### Declaration

```csharp
public string Identifier { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| string |  |

### Labels

Gets the canonical name and optional other translated values.

#### Declaration

```csharp
public IDictionary<CultureInfo, string> Labels { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| IDictionary<, >CultureInfostring |  |

### Implements

[IDataSourceValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.base.idatasourcevalue.html)
