Click or drag to resize
ViewModeExtensionsIsOneOf Method
Returns true if the view mode is one of the given view modes

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 9.0.0
Syntax
C#
public static bool IsOneOf(
	this ViewModeEnum viewMode,
	params ViewModeEnum[] modes
)

Parameters

viewMode
Type: CMS.PortalEngineViewModeEnum
View mode to check
modes
Type: CMS.PortalEngineViewModeEnum
View modes to match

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