1. Stylelabs.M.Sdk.Models.Base.DataSources

Class DataSourceValueBase

Values for a IDataSource. Also known as 'option list value'.

Inheritance

object

DataSourceValueBase

FlatDataSourceValue

HierarchicalDataSourceValue

Implements

IDataSourceValue

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsBaseDataSources

Assembly: Stylelabs.M.Sdk.dll

Syntax

public abstract class DataSourceValueBase : IDataSourceValue

Constructors

DataSourceValueBase(string, IDictionary<CultureInfo, string>)

Initializes a new instance of the DataSourceValueBase class.

Declaration

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

Parameters

TypeNameDescription
stringidentifierThe identifier.
IDictionary<, >CultureInfostringlabelsThe labels.

DataSourceValueBase(string)

Initializes a new instance of the DataSourceValueBase class.

Declaration

protected DataSourceValueBase(string identifier)

Parameters

TypeNameDescription
stringidentifierThe identifier.

Properties

Identifier

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

Declaration

public string Identifier { get; }

Property Value

TypeDescription
string

Labels

Gets the canonical name and optional other translated values.

Declaration

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

Property Value

TypeDescription
IDictionary<, >CultureInfostring

Implements

IDataSourceValue

If you have suggestions for improving this article, let us know!