Share via


DisplayModeProvider.GetDisplayInfoForVirtualPath Method

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets the DisplayInfo for the virtual path.

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

Syntax

'Declaration
Public Function GetDisplayInfoForVirtualPath ( _
    virtualPath As String, _
    httpContext As HttpContextBase, _
    virtualPathExists As Func(Of String, Boolean), _
    currentDisplayMode As IDisplayMode _
) As DisplayInfo
'Usage
Dim instance As DisplayModeProvider 
Dim virtualPath As String 
Dim httpContext As HttpContextBase 
Dim virtualPathExists As Func(Of String, Boolean)
Dim currentDisplayMode As IDisplayMode 
Dim returnValue As DisplayInfo 

returnValue = instance.GetDisplayInfoForVirtualPath(virtualPath, _
    httpContext, virtualPathExists, _
    currentDisplayMode)
public DisplayInfo GetDisplayInfoForVirtualPath(
    string virtualPath,
    HttpContextBase httpContext,
    Func<string, bool> virtualPathExists,
    IDisplayMode currentDisplayMode
)
public:
DisplayInfo^ GetDisplayInfoForVirtualPath(
    String^ virtualPath, 
    HttpContextBase^ httpContext, 
    Func<String^, bool>^ virtualPathExists, 
    IDisplayMode^ currentDisplayMode
)
member GetDisplayInfoForVirtualPath : 
        virtualPath:string * 
        httpContext:HttpContextBase * 
        virtualPathExists:Func<string, bool> * 
        currentDisplayMode:IDisplayMode -> DisplayInfo
public function GetDisplayInfoForVirtualPath(
    virtualPath : String, 
    httpContext : HttpContextBase, 
    virtualPathExists : Func<String, boolean>, 
    currentDisplayMode : IDisplayMode
) : DisplayInfo

Parameters

Return Value

Type: System.Web.WebPages.DisplayInfo
The DisplayInfo for the virtual path.

See Also

Reference

DisplayModeProvider Class

System.Web.WebPages Namespace