Kentico 9.0 API Reference
Kentico 9.0 API Reference
Namespaces
CMS.PortalEngine
ViewModeExtensions Class
ViewModeExtensions Methods
IsDesign Method
IsEdit Method
IsEditLive Method
IsLiveSite Method
IsOneOf Method
IsPreview Method
ViewModeExtensions
IsEditLive Method
Returns true if the view mode is editing view mode for live site
Namespace:
CMS.PortalEngine
Assembly:
CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 9.0.0
Syntax
C#
Copy
public
static
bool
IsEditLive
(
this
ViewModeEnum
viewMode
)
Parameters
viewMode
Type:
CMS.PortalEngine
ViewModeEnum
View mode to check
Return Value
Type:
Boolean
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ViewModeEnum
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
ViewModeExtensions Class
CMS.PortalEngine Namespace
Copyright (c) 2015 Kentico Software
Send comments on this topic to
support@kentico.com