C# Класс ToSic.SexyContent.SxcInstance

This is an instance-context of a Content-Module. It basically encapsulates the instance-state, incl. IDs of Zone & App, the App, EAV-Context, Template, Content-Groups (if available), Environment and OriginalModule (in case it's from another portal) It is needed for just about anything, because without this set of information it would be hard to get anything done . Note that it also adds the current-user to the state, so that the system can log data-changes to this user
Наследование: ISxcInstance
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Environment Environment.Environment

Private Properties

Свойство Тип Описание
CheckTemplateOverrides void
SxcInstance System
SxcInstance System
TryToGetTemplateBasedOnUrlParams Template

Открытые методы

Метод Описание
GetRenderingEngine ( InstancePurposes renderingPurpose ) : IEngine
Render ( ) : System.Web.HtmlString

Приватные методы

Метод Описание
CheckTemplateOverrides ( ) : void
SxcInstance ( IContentBlock cb, DotNetNuke.Entities.Modules.ModuleInfo runtimeModuleInfo, string>.IEnumerable urlparams = null ) : System
SxcInstance ( IContentBlock cb, SxcInstance runtimeInstance ) : System
TryToGetTemplateBasedOnUrlParams ( ) : Template

Описание методов

GetRenderingEngine() публичный Метод

public GetRenderingEngine ( InstancePurposes renderingPurpose ) : IEngine
renderingPurpose InstancePurposes
Результат IEngine

Render() публичный Метод

public Render ( ) : System.Web.HtmlString
Результат System.Web.HtmlString

Описание свойств

Environment публичное свойство

Environment - should be the place to refactor everything into, which is the host around 2sxc
public Environment.Environment Environment
Результат Environment.Environment