Click or drag to resize
ClassHelper Class
Helper to provide general access to assemblies and classes.
Inheritance Hierarchy
SystemObject
  CMS.BaseCoreMethods
    CMS.BaseAbstractHelper
      CMS.BaseAbstractHelperClassHelper
        CMS.BaseClassHelper

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 9.0.0
Syntax
C#
public class ClassHelper : AbstractHelper<ClassHelper>

The ClassHelper type exposes the following members.

Constructors
  NameDescription
Public methodClassHelper
Top
Fields
  NameDescription
Public fieldStatic memberASSEMBLY_APPCODE
AppCode constant.
Public fieldStatic memberOnGetCustomClass
Fires when the custom class is required.
Top
Properties
  NameDescription
Public propertyStatic memberDefaultAssembly
Gets or sets default assembly for loading classes. Default assembly is used when the assembly given by a parameter is not found.
Top
Methods
  NameDescription
Public methodStatic memberClassLoaded
Indicates if given class is loaded.
Protected methodClassLoadedInternal
Indicates if given class is loaded.
Public methodStatic memberGetAssembly
Loads the given assembly.
Protected methodGetAssemblyInternal
Loads the given assembly.
Public methodStatic memberGetAssemblyNames
Gets list of assembly names by given restrictions.
Protected methodGetAssemblyNamesInternal
Gets list of assembly names by given restrictions. Returns assemblies that contains at least one class fullfilling restrictions.
Public methodStatic memberGetClass(String, String)
Gets the new object of given class.
Public methodStatic memberGetClassReturnType(String, String)
Gets the new object of given class.
Public methodStatic memberGetClasses
Gets classes for given assembly name and filter settings
Protected methodGetClassesInternal
Gets classes for given assembly name and class restrictions settings.
Protected methodGetClassInternal
Gets the new object of given class.
Public methodStatic memberGetClassType
Gets the new object of given class.
Protected methodGetClassTypeInternal
Gets the type of given class.
Protected methodGetCustomClass
Attempts to get the custom class
Public methodStatic memberGetCustomClassNames
Gets the list of registered custom class names.
Protected methodGetCustomClassNamesInternal
Gets the list of registered custom class names.
Public methodStatic memberGetEmptyObject
Gets the empty object of the given type
Public methodStatic memberIsAllowed
Checks if given type is allowed based on base class name.
Public methodStatic memberIsCustomClass
Indicates if given assembly name represents custom class
Protected methodIsCustomClassInternal
Indicates if given assembly name represents custom class
Public methodStatic memberRegisterAliasForObjectType
Registers the class alias for backward compatibility
Public methodStatic memberRegisterCustomClass(String, String, IObjectFactory)
Registers the custom class under the given assembly name and class name. Overrides the default one
Public methodStatic memberRegisterCustomClassClassType(String)
Registers the custom App_Code class under the class name. Overrides the default one
Public methodStatic memberRegisterCustomClassClassType(String, String)
Registers the custom class under the given assembly name and class name. Overrides the default one
Public methodSetAsDefaultHelper
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.)
Top
See Also