Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class GadgetDefinition

Inheritance
System.Object
GadgetDefinition
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Gadgets
Assembly: EPiServer.Shell.dll
Version: 11.20.7
Syntax
[Obsolete("The Episerver gadget framework has been deprecated and was replaced by the Episerver Components.")]
public class GadgetDefinition

Constructors

GadgetDefinition(String, String, Type, String, GadgetAction[])

Declaration
public GadgetDefinition(string name, string title, Type controllerType, string defaultAction, params GadgetAction[] actions)
Parameters
Type Name Description
System.String name
System.String title
System.Type controllerType
System.String defaultAction
GadgetAction[] actions

Properties

Actions

Declaration
public IList<GadgetAction> Actions { get; }
Property Value
Type Description
System.Collections.Generic.IList<GadgetAction>

Area

Declaration
public string Area { get; set; }
Property Value
Type Description
System.String

Category

Declaration
public string Category { get; set; }
Property Value
Type Description
System.String

ClientLocalizationDependencies

Declaration
public IList<object> ClientLocalizationDependencies { get; }
Property Value
Type Description
System.Collections.Generic.IList<System.Object>

ClientResourceDependencies

Declaration
public IList<ClientResource> ClientResourceDependencies { get; }
Property Value
Type Description
System.Collections.Generic.IList<ClientResource>

ClientScriptInitMethod

Declaration
public string ClientScriptInitMethod { get; set; }
Property Value
Type Description
System.String

ControllerName

Declaration
public string ControllerName { get; }
Property Value
Type Description
System.String

ControllerType

Declaration
public Type ControllerType { get; set; }
Property Value
Type Description
System.Type

DefaultAction

Declaration
public string DefaultAction { get; set; }
Property Value
Type Description
System.String

Description

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

DescriptionResourceKey

Declaration
public string DescriptionResourceKey { get; set; }
Property Value
Type Description
System.String

IconUrl

Declaration
public string IconUrl { get; set; }
Property Value
Type Description
System.String

IsAvailable

Declaration
public Func<RequestContext, bool> IsAvailable { get; set; }
Property Value
Type Description
System.Func<System.Web.Routing.RequestContext, System.Boolean>

Name

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

NameResourceKey

Declaration
public string NameResourceKey { get; set; }
Property Value
Type Description
System.String

ResourceType

Declaration
public Type ResourceType { get; set; }
Property Value
Type Description
System.Type

Title

Declaration
public string Title { get; set; }
Property Value
Type Description
System.String

Extension Methods