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

Class SiteConfigDB

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

Constructors

SiteConfigDB(IDatabaseExecutor)

Declaration
public SiteConfigDB(IDatabaseExecutor databaseHandler)
Parameters
Type Name Description
IDatabaseExecutor 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