1. IDataSource

Interface IDataSource

A collection of predefined values for fields. Also known as 'option lists'.

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ContractsBase
Assembly: Stylelabs.M.Sdk.dll
Syntax
public interface IDataSource : IResource

Properties

IsSystemOwned

Gets or sets a value indicating whether the datasource is editable. false (default) allows the datasource to be editable, false locks the datasource preventing any further modifications.

Declaration
bool IsSystemOwned { get; set; }
Property Value
TypeDescription
bool

Labels

Gets optional translation(s) of the canonical name.

Declaration
IDictionary<CultureInfo, string> Labels { get; }
Property Value
TypeDescription
IDictionary<, >CultureInfostring

Name

Gets the name of the datasource. Can only contain letters, numbers, dots or underscores. Because it is used as an identifier, this also needs to be unique.

Declaration
string Name { get; }
Property Value
TypeDescription
string

Type

Gets the type of the datasource.

Declaration
DataSourceType Type { get; }
Property Value
TypeDescription
DataSourceType

Methods

GetDataSourceValues()

Gets a list of the data source values. Use the properties on IFlatDataSource or IHierarchicalDataSource. to make changes.

Declaration
IList<IDataSourceValue> GetDataSourceValues()
Returns
TypeDescription
IList<>IDataSourceValue

The list of IDataSourceValue.

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