Class ContextModeExtension
Convenient extension methods for ContextMode
Inheritance
System.Object
ContextModeExtension
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public static class ContextModeExtension : Object
Methods
EditOrPreview(ContextMode)
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 |