Table of Contents

Class ContentModuleConfigurationService

Namespace
Dynamicweb.Modules
Assembly
Dynamicweb.dll

Provides methods for querying content module configuration information.

public sealed class ContentModuleConfigurationService : ICacheStorage<int, ContentModuleConfiguration>, ICacheStorage<int>, ICacheStorage
Inheritance
ContentModuleConfigurationService
Implements
Inherited Members

Methods

ClearCache()

Resets all keys to the default value for objects stored in the object cache

public void ClearCache()

ClearCache(IEnumerable<int>)

Resets the specified keys to the default value for objects stored in the object cache

public void ClearCache(IEnumerable<int> keys)

Parameters

keys IEnumerable<int>

Keys to reset

ClearCache(int)

Resets the specified key to the default value for objects stored in the object cache

public void ClearCache(int key)

Parameters

key int

Key to reset

Delete(int)

Delete content module configuration by Id.

public bool Delete(int id)

Parameters

id int

The content module configuration Id

Returns

bool

GetContentModuleConfigurationById(int)

Get content module configuration by Id.

public ContentModuleConfiguration? GetContentModuleConfigurationById(int id)

Parameters

id int

The content module configuration Id

Returns

ContentModuleConfiguration

GetContentModuleConfigurationByUniqueId(Guid)

Get content module configuration by UniqueId.

public static ContentModuleConfiguration? GetContentModuleConfigurationByUniqueId(Guid uniqueId)

Parameters

uniqueId Guid

The content module configuration UniqueId

Returns

ContentModuleConfiguration

GetContentModuleConfigurations()

Get all content module configurations.

public IEnumerable<ContentModuleConfiguration> GetContentModuleConfigurations()

Returns

IEnumerable<ContentModuleConfiguration>

Save(ContentModuleConfiguration)

Add new or update existing content module configuration.

public void Save(ContentModuleConfiguration contentModuleConfiguration)

Parameters

contentModuleConfiguration ContentModuleConfiguration

The content module configuration

To top