Click or drag to resize
AppCorePreInit Method
Determines whether the pre-initialization phase of the application core life-cycle is complete. If it is not, it executes it.

Namespace: CMS.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 13.0.131
Syntax
C#
public static bool PreInit()

Return Value

Type: Boolean
True, the pre-initialization phase of the application core life-cycle has been executed; otherwise, false.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when a loop occurs in application core pre-initialization.
Remarks

This method is not intended to be used in custom code. Use CMS.DataEngine.CMSApplication.PreInit() instead.

A loop in application core pre-initialization is typically caused by some module's pre-initialization code trying to perform actions which require the application core to be already pre-initialized. Module's pre-initialization must never rely on such actions.

See Also