MacroSettings MembersKentico 8.0 API Reference
The MacroSettings type exposes the following members.
Constructors

  NameDescription
Public methodMacroSettings
Constructor
Back to Top
Methods

  NameDescription
Public methodAddCacheDependencies
Adds the cache dependencies to the macro context
Public methodAddFileCacheDependencies
Adds the cache dependencies to the macro context
Public methodClone
Returns the clone of the current context
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
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 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 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 propertyAllowContextMacros
If true, the properties from contexts are not resolved unless explicitly registered.
Public propertyAllowRecursion
If true, the recursion is allowed within the macro resolving. Default value is true.
Public propertyAvoidInjection
If true, the resolving of the macros should avoid SQL injection (escapes the apostrophes in output). Default value is false
Public propertyCacheDependencies
Outputs the cache dependencies collected during the processing
Public propertyCulture
Culture used for the resolving
Public propertyDisableContextMacros
If true, all the context macros are disabled (only base MacroResolver sources are checked).
Public propertyDisableContextObjectMacros
If true, context objects (such as ForumContext, CommunityContext, CMSContext, ...) will not be resolved.
Public propertyDisablePageContextMacros
If true, page context macros are not available (CurrentDocument, CurrentPageInfo).
Public propertyEncapsulateMacroObjects
If true, the object will be encapsulated to its macro representations
Public propertyEncodeResolvedValues
If true, the resolved macro values are encoded to avoid XSS. Default value is false
Public propertyEvaluationTimeout
Expression evaluation timeout in milliseconds. If the evaluation time exceeds this time, evaluation will be aborted and the result will be null.
Public propertyFileCacheDependencies
Outputs the file cache dependencies collected during the processing
Public propertyCheckIntegrity
If true, the integrity of security parameters is checked within macro evaluation.
Public propertyCheckSecurity
If true, the security is checked within macro evaluation
Public propertyKeepUnresolvedMacros
If true, unresolved macros are kept in their original form.
Public propertyMaxRecursionlevel
Gets or sets the maximal recursion level.
Public propertyRelatedObject
Related object allows set object used for resolving in macro method. Used in web part properties.
Public propertyTrackCacheDependencies
If true, the resolving tracks cache dependencies. Default value is false
Public propertyUserName
Gets or sets the name of the user which will be used to verify security when CheckIntegrity is false.
Public propertyVirtualMode
If true, the virtual mode is enabled for the macro resolver, meaning that the resolver always tries to return non-null values. Instead, empty objects are provided.
Back to Top
See Also