November Happy Hour will be moved to Thursday December 5th.

Interface IAvailableSettingsRepository

Defines the signature for a component that acts as a repository for AvailableSetting.

Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public interface IAvailableSettingsRepository

Methods

ClearSetting(String)

Clears all settings defined for the page type.

Declaration
void ClearSetting(string contentTypeName)
Parameters
Type Name Description
System.String contentTypeName

Name of the page type.

Remarks

Any other calls on the same session will be ignored if ClearAllSettings is called.

GetSetting(ContentType)

Gets the settings registered for the PageType in database.

Declaration
AvailableSetting GetSetting(ContentType contentType)
Parameters
Type Name Description
ContentType contentType

Type of the page.

Returns
Type Description
AvailableSetting
Remarks

The runtime settings on ContentTypeAvailabilityService will be the merged result from settings specified on the content type and on the model.

ListSettings()

Lists the registered settings.

Declaration
IDictionary<string, AvailableSetting> ListSettings()
Returns
Type Description
System.Collections.Generic.IDictionary<System.String, AvailableSetting>

RegisterSetting(ContentType, AvailableSetting)

Sets available content types settings for a page type.

Declaration
void RegisterSetting(ContentType contentType, AvailableSetting setting)
Parameters
Type Name Description
ContentType contentType

Type of the page.

AvailableSetting setting

The setting.

Remarks

The runtime settings on ContentTypeAvailabilityService will be the merged result from settings specified on the content type and on the model.

Events

SettingsChanged

Occurs when a setting has been changed.

Declaration
event EventHandler<RepositoryEventArgs> SettingsChanged
Event Type
Type Description
System.EventHandler<RepositoryEventArgs>

Extension Methods