Kentico 12 Service Pack API Reference
Kentico 12 Service Pack API Reference
Namespaces
CMS Namespaces
CMS.PortalEngine Namespaces
CMS.PortalEngine
ViewModeExtensions Class
ViewModeExtensions Methods
IsDesign Method
IsEdit Method
IsEditLive Method
IsLiveSite Method
IsOneOf Method
IsPreview Method
ViewModeExtensions
IsPreview Method
Returns true if the view mode is preview view mode
Namespace:
CMS.PortalEngine
Assembly:
CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 12.0.0
Syntax
C#
Copy
public
static
bool
IsPreview
(
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) 2019 Kentico Software
Send comments on this topic to
support@kentico.com