Class AssetCategoryViewModelSettings
- Namespace
- Dynamicweb.Ecommerce.ProductCatalog
- Assembly
- Dynamicweb.Ecommerce.dll
Controls which properties are populated on an AssetCategoryViewModel when it is built by the view model builder.
public class AssetCategoryViewModelSettings : ViewSettingsLanguageBase<AssetCategoryViewModel>
- Inheritance
-
AssetCategoryViewModelSettings
- Inherited Members
Remarks
Add property names to FilledProperties to request them. When Assets
is requested, MediaSettings is automatically initialised to govern how each
MediaViewModel in the list is populated.
Constructors
AssetCategoryViewModelSettings()
Initializes a new instance of the AssetCategoryViewModelSettings class using the default language.
public AssetCategoryViewModelSettings()
AssetCategoryViewModelSettings(string)
Initializes a new instance of the AssetCategoryViewModelSettings class for the specified language.
public AssetCategoryViewModelSettings(string languageId)
Parameters
languageIdstringThe ID of the language used to resolve localised values.
Properties
MediaSettings
Gets or sets the settings that control which properties are populated on each MediaViewModel
inside Assets.
This property is automatically initialised by EnsureFilledPropertiesExist() when
Assets is included in FilledProperties.
public MediaViewModelSettings MediaSettings { get; set; }
Property Value
Methods
EnsureFilledPropertiesExist()
Ensures that nested settings are initialised for every property that has been requested.
Automatically creates and initialises MediaSettings when
Assets is in FilledProperties.
public override void EnsureFilledPropertiesExist()