Try our conversational search powered by Generative AI!

Class ContentBaseUserControl

Inheritance
System.Object
ContentBaseUserControl
Namespace: EPiServer.UI
Assembly: EPiServer.UI.dll
Version: 11.20.7
Syntax
public class ContentBaseUserControl : UserControl

Constructors

ContentBaseUserControl()

Declaration
public ContentBaseUserControl()

Properties

CurrentContent

Declaration
public virtual IContent CurrentContent { get; set; }
Property Value
Type Description
IContent

LocalizationService

Declaration
protected virtual LocalizationService LocalizationService { get; }
Property Value
Type Description
LocalizationService

Locate

Declaration
public ServiceLocationHelper Locate { get; }
Property Value
Type Description
ServiceLocationHelper

Methods

GetChildren<T>(ContentReference)

Declaration
public virtual IEnumerable<T> GetChildren<T>(ContentReference contentLink)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
Returns
Type Description
System.Collections.Generic.IEnumerable<T>
Type Parameters
Name Description
T

GetContent<T>(ContentReference)

Declaration
public virtual T GetContent<T>(ContentReference contentLink)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
Returns
Type Description
T
Type Parameters
Name Description
T

IsValue(String)

Declaration
public virtual bool IsValue(string propertyName)
Parameters
Type Name Description
System.String propertyName
Returns
Type Description
System.Boolean

LoadDisplayTemplate(BlockData)

Declaration
public virtual Control LoadDisplayTemplate(BlockData blockData)
Parameters
Type Name Description
BlockData blockData
Returns
Type Description
System.Web.UI.Control

RegisterClientScriptFile(String)

Declaration
public virtual void RegisterClientScriptFile(string rootRelativePath)
Parameters
Type Name Description
System.String rootRelativePath

Translate(String)

Declaration
public virtual string Translate(string key)
Parameters
Type Name Description
System.String key
Returns
Type Description
System.String

TranslateFallback(String, String)

Declaration
protected virtual string TranslateFallback(string key, string fallback)
Parameters
Type Name Description
System.String key
System.String fallback
Returns
Type Description
System.String

TranslateForScript(String)

Declaration
protected virtual string TranslateForScript(string key)
Parameters
Type Name Description
System.String key
Returns
Type Description
System.String

Extension Methods