Table of Contents

Class ModuleManager

Namespace
CMS.DataEngine
Assembly
CMS.DataEngine.dll

Manages the list of modules within application

public class ModuleManager : ModuleEntryManager
Inheritance
object
ModuleManager
Inherited Members
Extension Methods

Methods

ClearHashtables(bool)

Clears all the module hashtables.

public static void ClearHashtables(bool logTasks = true)

Parameters

logTasks bool

If true, web farm tasks are logged

ClearReadOnlyObjects(bool)

Clears object structures.

public static void ClearReadOnlyObjects(bool logTask)

Parameters

logTask bool

If true, web farm tasks are logged

GetContextProperty(string, string)

Gets the value of context property.

public static object GetContextProperty(string name, string propertyName)

Parameters

name string

Context name

propertyName string

Property name

Returns

object

GetObject(LoadDataSettings)

Gets a new object of the given type created using the given settings.

public static BaseInfo GetObject(LoadDataSettings settings)

Parameters

settings LoadDataSettings

Object settings

Returns

BaseInfo

GetObject(DataRow, string, bool)

Gets a new object of the given type created from the given DataRow.

public static BaseInfo GetObject(DataRow objectRow, string objectType, bool throwIfNotFound = false)

Parameters

objectRow DataRow

Object DataRow

objectType string

Object type

throwIfNotFound bool

If true, the method throws an exception in case the object type was not found

Returns

BaseInfo

GetObject(string, bool)

Gets a new object of the given type.

public static BaseInfo GetObject(string objectType, bool throwIfNotFound = false)

Parameters

objectType string

Object type

throwIfNotFound bool

If true, the method throws an exception in case the object type was not found

Returns

BaseInfo

GetReadOnlyObject(string)

Gets the cached object instance of given type.

public static BaseInfo GetReadOnlyObject(string objectType)

Parameters

objectType string

Object type

Returns

BaseInfo

GetReadOnlyObject(string, bool)

Gets the cached object instance of given type.

public static BaseInfo GetReadOnlyObject(string objectType, bool exceptionIfNotFound)

Parameters

objectType string

Object type

exceptionIfNotFound bool

If true, an exception is fired if the given object type is not found

Returns

BaseInfo

GetReadOnlyObjectByClassName(string)

Gets the cached object representation of the given class name.

[Obsolete("Method is deprecated and will be removed in the next version.")]
[ObsoleteSince(27, 0)]
public static BaseInfo GetReadOnlyObjectByClassName(string className)

Parameters

className string

Class name

Returns

BaseInfo

RemoveReadOnlyObject(string, bool)

Removes object structures.

public static void RemoveReadOnlyObject(string objectType, bool logTask)

Parameters

objectType string

Object type

logTask bool

If true, web farm tasks are logged