Class MvcContentAreaValidator
Used to validate that content items are not rendered in a circular manner.
Inheritance
Implements
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3Syntax
public class MvcContentAreaValidator : Object, IDisposable
Remarks
The though usage is to use the component in a using statement.
Constructors
MvcContentAreaValidator(HttpContext)
Initializes a new instance of the Mvc
Declaration
public MvcContentAreaValidator(HttpContext httpContext)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
httpContext | The HTTP context. |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Remarks
This is used to indicate that the item called in Exist
Dispose(Boolean)
Triggers the end element when disposing
is true
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System. |
disposing |
|
ExistInParentHierarchy(IContent, TemplateModel)
Does a check if the instance already exist in parent hierarchy.
Declaration
public virtual bool ExistInParentHierarchy(IContent content, TemplateModel templateModel)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | The content. |
Template |
templateModel | The template model. |
Returns
Type | Description |
---|---|
System. |