Click or drag to resize
MacroMethodContainer Class
Container for method extensions of an arbitrary object used by MacroEngine.
Inheritance Hierarchy
SystemObject
  CMS.MacroEngineMacroExtensionContainerMacroMethodContainer, MacroMethod
    CMS.MacroEngineMacroMethodContainer
      More...

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 8.2.23
Syntax
C#
public class MacroMethodContainer : MacroExtensionContainer<MacroMethodContainer, MacroMethod>

The MacroMethodContainer type exposes the following members.

Constructors
  NameDescription
Public methodMacroMethodContainer
Top
Methods
  NameDescription
Protected methodStatic memberCompareDateTime
Compares DateTime values.
Protected methodStatic memberCompareDouble
Compares double numbers.
Protected methodStatic memberCompareString
Compares strings (lexicographically).
Protected methodStatic memberCompareTimeSpan
Compares TimeSpan values.
Protected methodStatic memberCompareValues
Returns true if first parameter is lower than or equal to second.
Protected methodStatic memberGetBoolParam
Returns the parameter converted to boolean or false if parameter is not boolean.
Protected methodStatic memberGetDoubleParam
Returns the parameter converted to double or zero if parameter is not double.
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.
(Overrides MacroExtensionContainerTContainer, TExtensionGetExtension(Type, String).)
Protected methodGetExtensions
Gets the extensions for the given type. Does not cache the result.
(Overrides MacroExtensionContainerTContainer, TExtensionGetExtensions(Type).)
Protected methodStatic memberGetGuidParam
Converts the parameter to GUID. Returns Guid.Empty if parameter is not GUID.
Protected methodStatic memberGetIntParam
Returns the parameter converted to integer or zero if parameter is not integer.
Protected methodStatic memberGetLazyParamValue
Gets the lazy parameter value by evaluating it
Public methodGetMethod
Returns a method of given name (return null if specified method does not exist).
Public methodStatic memberGetMethodForObject
Returns macro method object of given name if registered for specified object. It loops through all MacroMethodContainer extensions of given object type. Returns null if there is no such Extension for given object.
Public methodStatic memberGetMethodsForObject
Returns list of macro method extension registered for specified object. Returns null if there is no such extension for given object.
Protected methodStatic memberGetOptionalParamT
Gets the optional param of the given type
Protected methodStatic memberGetParamValueT
Returns the index-th parameter evaluated using given resolver.
Protected methodStatic memberGetStringParam
Returns the parameter converted to string or empty string.
Protected methodRegisterExtension
Registers a Extension to the container.
(Inherited from MacroExtensionContainerTContainer, TExtension.)
Protected methodRegisterExtensions
Registers all the methods.
(Overrides MacroExtensionContainerTContainer, TExtensionRegisterExtensions.)
Public methodRegisterMethod
Registers the given method.
Protected methodRegisterMethodInternal(String, FuncEvaluationContext, Object, Object, Type, String, Int32, Object, String)
Registers the given method within the method table.
Protected methodRegisterMethodInternal(String, FuncEvaluationContext, Object, Object, Type, String, Int32, Object, String)
Registers the given method within the method table.
Protected methodRegisterMethods
Registers all the methods.
Public methodRegisterMethods(MacroMethod)
Registers the given methods.
Protected methodStatic memberUnwrapContainer
Unwraps all DateTime and TimeSpan containers to their original system value.
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
Inheritance Hierarchy
SystemObject
  CMS.MacroEngineMacroExtensionContainerMacroMethodContainer, MacroMethod
    CMS.MacroEngineMacroMethodContainer
      CMS.AutomationAutomationMethods
      CMS.BlogsBlogMethods
      CMS.CommunityCommunityMethods
      CMS.ControlsTransformationMethods
      CMS.DocumentEngineContentMethods
      CMS.DocumentEngineNodeDataMethods
      CMS.DocumentEngineTreeNodeCollectionMethods
      CMS.DocumentEngineWorkflowMethods
      CMS.ForumsForumMethods
      CMS.MediaLibraryMediaLibraryMethods
      CMS.MembershipMembershipMethods
      CMS.MessageBoardsMessageBoardMethods
      CMS.NewslettersNewsletterMacroMethods
      CMS.SearchSearchMacroMethods
      CMS.TranslationServicesTranslationServicesMethods
      CMS.TranslationServicesTranslationServicesTreeNodeMethods
      CMS.WebAnalyticsVisitorMethods