Class ModuleHost
ModuleHost hosts a Module Control (or its cached Content).
Inheritance
System.Object
ModuleHost
Namespace: DotNetNuke.UI.Modules
Assembly: DotNetNuke.dll
Syntax
public sealed class ModuleHost : Panel
Constructors
| Improve this Doc View SourceModuleHost(ModuleInfo, Skin, Container)
Initializes a new instance of the ModuleHost class. Creates a Module Host control using the ModuleConfiguration for the Module.
Declaration
public ModuleHost(ModuleInfo moduleConfiguration, Skin skin, Container container)
Parameters
Type | Name | Description |
---|---|---|
ModuleInfo | moduleConfiguration | |
Skin | skin | |
Container | container |
Properties
| Improve this Doc View SourceContainer
ModuleHost hosts a Module Control (or its cached Content).
Declaration
public Container Container { get; }
Property Value
Type | Description |
---|---|
Container |
ModuleControl
Gets the attached ModuleControl.
Declaration
public IModuleControl ModuleControl { get; }
Property Value
Type | Description |
---|---|
IModuleControl | An IModuleControl. |
PortalSettings
Gets the current POrtal Settings.
Declaration
public PortalSettings PortalSettings { get; }
Property Value
Type | Description |
---|---|
PortalSettings |
Skin
ModuleHost hosts a Module Control (or its cached Content).
Declaration
public Skin Skin { get; }
Property Value
Type | Description |
---|---|
Skin |
Methods
| Improve this Doc View SourceCreateChildControls()
CreateChildControls builds the control tree.
Declaration
protected override void CreateChildControls()
OnPreRender(EventArgs)
ModuleHost hosts a Module Control (or its cached Content).
Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e |
RenderContents(HtmlTextWriter)
RenderContents renders the contents of the control to the output stream.
Declaration
protected override void RenderContents(HtmlTextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
HtmlTextWriter | writer |