Click or drag to resize
MacroExtensionContainerTExtension Class

Note: This API is now obsolete.

Wrapper class to provide extensions to an arbitrary object. It is a base class for ExtensionTypeContainer and MacroFieldContainer classes.
Inheritance Hierarchy
SystemObject
  CMS.MacroEngineMacroExtensionContainerMacroExtensionContainerTExtension, TExtension
    CMS.MacroEngineMacroExtensionContainerTExtension

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 8.2.23
Syntax
C#
[ObsoleteAttribute("Use class MacroExtensionContainer<TContainer, TExtension> or its derivate.")]
public class MacroExtensionContainer<TExtension> : MacroExtensionContainer<MacroExtensionContainer<TExtension>, TExtension>
where TExtension : MacroExtension

Type Parameters

TExtension

The MacroExtensionContainerTExtension type exposes the following members.

Constructors
Methods
  NameDescription
Protected methodGetExtension(String)
Returns a Extension of given name (return null if specified Extension does not exist).
(Inherited from MacroExtensionContainerTContainer, TExtension.)
Protected methodGetExtension(Type, String)
Returns the extension by type and name. Does not cache the result. Does not cache the result.
(Inherited from MacroExtensionContainerTContainer, TExtension.)
Protected methodGetExtensions
Gets the extensions for the given type. Does not cache the result.
(Inherited from MacroExtensionContainerTContainer, TExtension.)
Protected methodRegisterExtension
Registers a Extension to the container.
(Inherited from MacroExtensionContainerTContainer, TExtension.)
Protected methodRegisterExtensions
Registers extensions to the container. Override this to call RegisterExtension from within.
(Inherited from MacroExtensionContainerTContainer, TExtension.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Properties
See Also