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

Class SiteConfigDB

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Inheritance
System.Object
SiteConfigDB
Namespace: EPiServer.DataAccess
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
[ServiceConfiguration]
public class SiteConfigDB : DataAccessBase

Constructors

SiteConfigDB(IDatabaseHandler)

Declaration
public SiteConfigDB(IDatabaseHandler databaseHandler)
Parameters
Type Name Description
IDatabaseHandler databaseHandler

Methods

DeleteValue(String, String)

Deletes a value for a specific site This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

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

GetValue(String, String)

Gets a value for a specific site This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public string GetValue(string siteId, string name)
Parameters
Type Name Description
System.String siteId
System.String name
Returns
Type Description
System.String

The value for the site and name requested

GetValues(String)

Get a value for a sites registered This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public IDictionary<string, string> GetValues(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.Collections.Generic.IDictionary<System.String, System.String>

A DataTable containing rows for the property requested (see tblSiteConfig for column definitions)

SetValue(String, String, String)

Sets a value for a specific site This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

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

SetValue(String, String, String, Boolean)

Sets a value for a specific site This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public void SetValue(string siteId, string name, string value, bool compressData)
Parameters
Type Name Description
System.String siteId

The site id.

System.String name

The name.

System.String value

The value.

System.Boolean compressData

if set to true the value is compressed using UTF8 encoding.

Extension Methods