Xperience 13 API Reference
Xperience 13 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
IsLiveSite Method
Returns true if the view mode is live site view mode
Namespace:
CMS.PortalEngine
Assembly:
CMS.PortalEngine.Web.UI (in CMS.PortalEngine.Web.UI.dll) Version: 13.0.131
Syntax
C#
Copy
public
static
bool
IsLiveSite
(
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) 2023 Kentico Software
Send comments on this topic to
support@kentico.com