Class VerifyGadgetOwnerAttribute

A filter that verifies that the current gadget belongs to the currently logged on user

Inheritance
System.Object
VerifyGadgetOwnerAttribute
Namespace: EPiServer.Shell.Gadgets
Assembly: EPiServer.Shell.dll
Version: 10.10.4
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
[Obsolete("The Episerver gadget framework has been deprecated and was replaced by the Episerver Components.")]
public sealed class VerifyGadgetOwnerAttribute : ActionFilterAttribute

Constructors

VerifyGadgetOwnerAttribute()

Declaration
public VerifyGadgetOwnerAttribute()

Methods

OnActionExecuting(ActionExecutingContext)

Called before an action is executed. Will throw an exception if the specified gadget doesn't belong to the currently logged on user.

Declaration
public override void OnActionExecuting(ActionExecutingContext filterContext)
Parameters
Type Name Description
System.Web.Mvc.ActionExecutingContext filterContext

A context for the action.

Extension Methods