November Happy Hour will be moved to Thursday December 5th.

Class ContextModeExtension

Convenient extension methods for ContextMode

Inheritance
System.Object
ContextModeExtension
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public static class ContextModeExtension : Object

Methods

EditOrPreview(ContextMode)

Determines if current context mode is Edit or Preview

Declaration
public static bool EditOrPreview(this ContextMode contextMode)
Parameters
Type Name Description
ContextMode contextMode

The context mode that is extended

Returns
Type Description
System.Boolean

True if context mode is edit or preview else false