Search Results for

    Show / Hide Table of Contents
    View Source

    Class AppendUserModifiedHeaderAttribute

    Appends a custom response header to notify the UI that the current user data has been modified

    Inheritance
    System.Object
    System.Attribute
    Microsoft.AspNetCore.Mvc.Filters.ActionFilterAttribute
    Namespace: Umbraco.Cms.Web.BackOffice.Filters
    Assembly: Umbraco.Web.BackOffice.dll
    Syntax
    public sealed class AppendUserModifiedHeaderAttribute : ActionFilterAttribute, IActionFilter, IAsyncActionFilter, IResultFilter, IAsyncResultFilter, IOrderedFilter, IFilterMetadata

    Constructors

    View Source

    AppendUserModifiedHeaderAttribute()

    An empty constructor which will always set the header.

    Declaration
    public AppendUserModifiedHeaderAttribute()
    View Source

    AppendUserModifiedHeaderAttribute(String)

    A constructor specifying the action parameter name containing the user id to match against the current user and if they match the header will be appended.

    Declaration
    public AppendUserModifiedHeaderAttribute(string userIdParameter)
    Parameters
    Type Name Description
    System.String userIdParameter

    Methods

    View Source

    AppendHeader(ActionExecutingContext)

    Declaration
    public static void AppendHeader(ActionExecutingContext context)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context
    View Source

    OnActionExecuting(ActionExecutingContext)

    Declaration
    public override void OnActionExecuting(ActionExecutingContext context)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • AppendUserModifiedHeaderAttribute()
      • AppendUserModifiedHeaderAttribute(String)
    • Methods
      • AppendHeader(ActionExecutingContext)
      • OnActionExecuting(ActionExecutingContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX