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 SourceValidateUmbracoFormRouteStringAttribute()
Declaration
public ValidateUmbracoFormRouteStringAttribute()