Class UmbracoUserControl
A base class for all Presentation UserControls to inherit from
Inheritance
System.Object
System.Web.UI.Control
System.Web.UI.TemplateControl
System.Web.UI.UserControl
Namespace:System.Dynamic.ExpandoObject
Assembly:umbraco.dll
Syntax
public abstract class UmbracoUserControl : UserControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IFilterResolutionService, IAttributeAccessor, INonBindingContainer, INamingContainer, IUserControlDesignerAccessor
Constructors
UmbracoUserControl()
Empty constructor, uses Singleton to resolve the UmbracoContext
Declaration
protected UmbracoUserControl()
UmbracoUserControl(UmbracoContext)
Default constructor
Declaration
protected UmbracoUserControl(UmbracoContext umbracoContext)
Parameters
Type | Name | Description |
---|---|---|
UmbracoContext | umbracoContext |
Properties
ApplicationContext
Returns the current ApplicationContext
Declaration
public ApplicationContext ApplicationContext { get; }
Property Value
Type | Description |
---|---|
ApplicationContext |
DatabaseContext
Returns a DatabaseContext
Declaration
public DatabaseContext DatabaseContext { get; }
Property Value
Type | Description |
---|---|
DatabaseContext |
Logger
Returns an ILogger
Declaration
public ILogger Logger { get; }
Property Value
Type | Description |
---|---|
ILogger |
Members
Returns the MemberHelper instance
Declaration
public MembershipHelper Members { get; }
Property Value
Type | Description |
---|---|
MembershipHelper |
ProfilingLogger
Returns a ProfilingLogger
Declaration
public ProfilingLogger ProfilingLogger { get; }
Property Value
Type | Description |
---|---|
ProfilingLogger |
Security
Returns the current WebSecurity instance
Declaration
public WebSecurity Security { get; }
Property Value
Type | Description |
---|---|
WebSecurity |
Services
Returns a ServiceContext
Declaration
public ServiceContext Services { get; }
Property Value
Type | Description |
---|---|
ServiceContext |
SqlHelper
Unused, please do not use
Declaration
[Obsolete("Obsolete, For querying the database use the new UmbracoDatabase object ApplicationContext.Current.DatabaseContext.Database", false)]
protected ISqlHelper SqlHelper { get; }
Property Value
Type | Description |
---|---|
umbraco.DataLayer.ISqlHelper |
Umbraco
Returns an UmbracoHelper object
Declaration
public UmbracoHelper Umbraco { get; }
Property Value
Type | Description |
---|---|
UmbracoHelper |
UmbracoContext
Returns the current UmbracoContext
Declaration
public UmbracoContext UmbracoContext { get; }
Property Value
Type | Description |
---|---|
UmbracoContext |
Url
Returns a UrlHelper
Declaration
public UrlHelper Url { get; }
Property Value
Type | Description |
---|---|
System.Web.Mvc.UrlHelper |
Remarks
This URL helper is created without any route data and an empty request context