MacroMethod MembersKentico 8.1 API Reference
The MacroMethod type exposes the following members.
Constructors

  NameDescription
Public methodMacroMethod 
Creates new MacroMethod object.
Public methodMacroMethod(String, Func  Object , Object )
Creates new instance of MacroMethod object.
Public methodMacroMethod(String, Func EvaluationContext,  Object , Object )
Creates new instance of MacroMethod object.
Public methodMacroMethod(String, Func MacroResolver,  Object , Object )
Creates new instance of MacroMethod object.
Back to Top
Methods

  NameDescription
Public methodAddParameter(IMacroMethodParam)
Adds parameter to the method definition.
Public methodAddParameter(String, Type, String, Boolean, Boolean)
Adds parameter to the method definition.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Public methodExecuteMethod( Object )
Executes given method with parameters.
Public methodExecuteMethod(EvaluationContext,  Object )
Executes given method with parameters.
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodGetParameterComment
Returns a comment of the index-th parameter.
Public methodGetParameterName
Returns a name of the index-th parameter.
Public methodGetParameterType
Returns a type of the index-th parameter.
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Back to 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.)
Back to Top
Properties

  NameDescription
Public propertyAllowedTypes
Gets or sets a list of types for which the method is applicable (set to null for all types to be allowed).
Public propertyComment
Gets or sets a comment for the method.
Public propertyIsHidden
If true, the method won't be visible in IntelliSense (but will be normally executed when called).
Public propertyMethod
Gets or sets reference to a method.
Public propertyMethodContext
Gets or sets reference to a method.
Public propertyMethodResolver
Gets or sets reference to a method.
Public propertyMinimumParameters
Gets or sets the minimal number of parameters needed by the method.
Public propertyName
Returns name of the field.
(Inherited from MacroExtension.)
Public propertyParameters
Gets or sets the parameters for the method.
Public propertySnippet
Gets or sets a code snippet which is used in AutoCompletion when TAB is pressed (for determining the cursor position use pipe).
Public propertySpecialParameters
Gets or sets the list of special parameters needed to be supplied by resolver.
Public propertyType
Gets or sets a return type of the method.
Back to Top
See Also