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

Interface ISiteConfigurationRepository

Describes methods for storing, retrieving and deleting configuration values associated with a specific site.

Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public interface ISiteConfigurationRepository

Methods

DeleteValue(String, String)

Deletes the configuration value associated with the provided site and key.

Declaration
void DeleteValue(string siteId, string key)
Parameters
Type Name Description
System.String siteId

The id of the site that the value should be associated with.

System.String key

The key that the value should be associated with.

GetValue(String, String)

Gets the configuration value associated with the provided site and key.

Declaration
string GetValue(string siteId, string key)
Parameters
Type Name Description
System.String siteId

The id of the site that the value is associated with.

System.String key

The key that the value is associated with.

Returns
Type Description
System.String

Configuration string if found; otherwise null.

GetValues(String)

Gets a dictionary with all the configuration value associated with the provided key where the key of the returned dictionary is the site id.

Declaration
IDictionary<string, string> GetValues(string key)
Parameters
Type Name Description
System.String key

The key that the value is associated with.

Returns
Type Description
System.Collections.Generic.IDictionary<System.String, System.String>

A dictionary with the site and configuration value.

SetValue(String, String, String)

Sets the configuration value and associates it with the provided site and key.

Declaration
void SetValue(string siteId, string key, string value)
Parameters
Type Name Description
System.String siteId

The id of the site that the value should be associated with.

System.String key

The key that the value should be associated with.

System.String value

The value that should be associated with the provided site and key.

Extension Methods