SaaS CMS has officially launched! Learn more now.

Class EditPropertyContext

Helper class to determine how proeprties should be handled for edit

Inheritance
System.Object
EditPropertyContext
Namespace: EPiServer.Web.Templating
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3
Syntax
public static class EditPropertyContext : Object

Methods

ShouldRenderEditAttributes(HttpContext, String)

This method can be used to determine if edit attributes should be added when rendering a property.

Declaration
public static bool ShouldRenderEditAttributes(HttpContext context, string propertyName)
Parameters
Type Name Description
Microsoft.AspNetCore.Http.HttpContext context

The request context.

System.String propertyName

Name of the property.

Returns
Type Description
System.Boolean
Remarks

This method requires that the other push, pop methods on the context is used.