• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class DotNetNukeContext

Defines the context for the environment of the DotNetNuke application.

Inheritance
System.Object
DotNetNukeContext
Implements
IDnnContext
Namespace: DotNetNuke.Application
Assembly: DotNetNuke.dll
Syntax
public class DotNetNukeContext : object, IDnnContext

Constructors

| Improve this Doc View Source

DotNetNukeContext()

Initializes a new instance of the DotNetNukeContext class.

Declaration
protected DotNetNukeContext()
Remarks

Initialize using the public constructor for Dependency Injection, this method will be removed.

| Improve this Doc View Source

DotNetNukeContext(IApplicationInfo)

Initializes a new instance of the DotNetNukeContext class using the provided application as base.

Declaration
public DotNetNukeContext(IApplicationInfo applicationInfo)
Parameters
Type Name Description
IApplicationInfo applicationInfo

The application.

Remarks

This constructor is designed to be used with Dependency Injection.

| Improve this Doc View Source

DotNetNukeContext(Application)

Initializes a new instance of the DotNetNukeContext class.

Declaration
protected DotNetNukeContext(Application application)
Parameters
Type Name Description
Application application

A reference to the .Net application.

Remarks

Initialize using the public constructor for Dependency Injection, this method will be removed.

Properties

| Improve this Doc View Source

Application

Gets get the application.

Declaration
public Application Application { get; }
Property Value
Type Description
Application
| Improve this Doc View Source

ContainerEventListeners

Gets the container event listeners. The listeners will be called in each life cycle of load container.

Declaration
public IList<ContainerEventListener> ContainerEventListeners { get; }
Property Value
Type Description
IList<ContainerEventListener>
See Also
OnInit(EventArgs)
OnLoad(EventArgs)
OnPreRender(EventArgs)
OnUnload(EventArgs)
| Improve this Doc View Source

Current

Gets or sets the current app context.

Declaration
public static DotNetNukeContext Current { get; set; }
Property Value
Type Description
DotNetNukeContext
| Improve this Doc View Source

SkinEventListeners

Gets the skin event listeners. The listeners will be called in each life cycle of load skin.

Declaration
public IList<SkinEventListener> SkinEventListeners { get; }
Property Value
Type Description
IList<SkinEventListener>
See Also
OnInit(EventArgs)
OnLoad(EventArgs)
OnPreRender(EventArgs)
OnUnload(EventArgs)

Explicit Interface Implementations

| Improve this Doc View Source

IDnnContext.Application

Gets get the application.

Declaration
IApplicationInfo IDnnContext.Application { get; }
Returns
Type Description
IApplicationInfo

Implements

IDnnContext

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS