Class DataSourceBase<T>
A base class for data sources.
Inherited Members
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsBaseDataSourcesGeneric
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public abstract class DataSourceBase<T> : DataSourceBase, IDataSource<T>, IDataSource, IResource where T : class, IDataSourceValue
Type Parameters
Name | Description |
---|---|
T |
The type. |
Constructors
DataSourceBase(string, IDictionary<CultureInfo, string>, IList<T>)
Initializes a new instance of the DataSourceBase<T> class.
Declaration
RequestResponse
protected DataSourceBase(string name, IDictionary<CultureInfo, string> labels, IList<T> values)
Parameters
Type | Name | Description |
---|---|---|
string | name |
The name of the data source. |
IDictionary<, >CultureInfostring | labels |
The labels for the data source. |
IList<> | values |
The values for the data source. |
DataSourceBase(string)
Initializes a new instance of the DataSourceBase<T> class.
Declaration
RequestResponse
protected DataSourceBase(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
The name of the data source. |
Properties
Values
Gets the list of data source values.
Declaration
RequestResponse
public IList<T> Values { get; protected set; }
Property Value
Type | Description |
---|---|
IList<> |
Methods
GetDataSourceValues()
Gets a list of the data source values. Use the properties on IFlatDataSource or IHierarchicalDataSource. to make changes.
Declaration
RequestResponse
public override IList<IDataSourceValue> GetDataSourceValues()
Returns
Type | Description |
---|---|
IList<>IDataSourceValue |
The list of IDataSourceValue. |