DisplayModeProvider.GetAvailableDisplayModesForContext Method

Definition

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets a list of the available display modes for the context base.

public System.Collections.Generic.IEnumerable<System.Web.WebPages.IDisplayMode> GetAvailableDisplayModesForContext (System.Web.HttpContextBase httpContext, System.Web.WebPages.IDisplayMode currentDisplayMode);
member this.GetAvailableDisplayModesForContext : System.Web.HttpContextBase * System.Web.WebPages.IDisplayMode -> seq<System.Web.WebPages.IDisplayMode>
Public Function GetAvailableDisplayModesForContext (httpContext As HttpContextBase, currentDisplayMode As IDisplayMode) As IEnumerable(Of IDisplayMode)

Parameters

httpContext
HttpContextBase

The http context base.

currentDisplayMode
IDisplayMode

The current display mode.

Returns

A list of the available display modes for the context base.

Applies to