Share via


DisplayModeProvider.GetAvailableDisplayModesForContext Method

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.

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Public Function GetAvailableDisplayModesForContext ( _
    httpContext As HttpContextBase, _
    currentDisplayMode As IDisplayMode _
) As IEnumerable(Of IDisplayMode)
'Usage
Dim instance As DisplayModeProvider 
Dim httpContext As HttpContextBase 
Dim currentDisplayMode As IDisplayMode 
Dim returnValue As IEnumerable(Of IDisplayMode)

returnValue = instance.GetAvailableDisplayModesForContext(httpContext, _
    currentDisplayMode)
public IEnumerable<IDisplayMode> GetAvailableDisplayModesForContext(
    HttpContextBase httpContext,
    IDisplayMode currentDisplayMode
)
public:
IEnumerable<IDisplayMode^>^ GetAvailableDisplayModesForContext(
    HttpContextBase^ httpContext, 
    IDisplayMode^ currentDisplayMode
)
member GetAvailableDisplayModesForContext : 
        httpContext:HttpContextBase * 
        currentDisplayMode:IDisplayMode -> IEnumerable<IDisplayMode> 
public function GetAvailableDisplayModesForContext(
    httpContext : HttpContextBase, 
    currentDisplayMode : IDisplayMode
) : IEnumerable<IDisplayMode>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<IDisplayMode>
A list of the available display modes for the context base.

See Also

Reference

DisplayModeProvider Class

System.Web.WebPages Namespace