DisplayModeProvider.GetAvailableDisplayModesForContext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.