Search Results for

    Show / Hide Table of Contents
    View Source

    Class MacroErrorEventArgs

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Events
    Assembly: Umbraco.Core.dll
    Syntax
    public class MacroErrorEventArgs : EventArgs

    Properties

    View Source

    Alias

    Alias of the faulting macro.

    Declaration
    public string Alias { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Behaviour

    Gets or sets the desired behaviour when a matching macro causes an error. See MacroErrorBehaviour for definitions. By setting this in your event you can override the default behaviour defined in UmbracoSettings.config.

    Declaration
    public MacroErrorBehaviour Behaviour { get; set; }
    Property Value
    Type Description
    MacroErrorBehaviour

    Macro error behaviour enum.

    View Source

    Exception

    Exception raised.

    Declaration
    public Exception? Exception { get; set; }
    Property Value
    Type Description
    System.Nullable<Exception>
    View Source

    Html

    The HTML code to display when Behavior is Content.

    Declaration
    public string Html { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    MacroSource

    Filename, file path, fully qualified class name, or other key used by the macro engine to do it's processing of the faulting macro.

    Declaration
    public string MacroSource { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Name

    Name of the faulting macro.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • Alias
      • Behaviour
      • Exception
      • Html
      • MacroSource
      • Name
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX