Search Results for

    Show / Hide Table of Contents
    View Source

    Class ValidateUmbracoFormRouteStringAttribute

    Attribute used to check that the request contains a valid Umbraco form request string.

    Inheritance
    System.Object
    System.Attribute
    Microsoft.AspNetCore.Mvc.TypeFilterAttribute
    Namespace: Umbraco.Cms.Web.Common.Filters
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public class ValidateUmbracoFormRouteStringAttribute : TypeFilterAttribute, IFilterFactory, IOrderedFilter, IFilterMetadata
    Remarks

    Applying this attribute/filter to a Umbraco.Cms.Web.Website.Controllers.SurfaceContorller or SurfaceController Action will ensure that the Action can only be executed when it is routed to from within Umbraco, typically when rendering a form with BeginUmbracoForm. It will mean that the natural MVC route for this Action will fail with a HttpUmbracoFormRouteStringException.

    Constructors

    View Source

    ValidateUmbracoFormRouteStringAttribute()

    Declaration
    public ValidateUmbracoFormRouteStringAttribute()
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ValidateUmbracoFormRouteStringAttribute()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX