WebRazorHostFactory.CreateDefaultHost Method (String)

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

Creates a default host with the specified virtual path.

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

static member CreateDefaultHost : 
        virtualPath:string -> WebPageRazorHost

Parameters

virtualPath
Type: System.String
The virtual path of the file.

Return Value

Type: System.Web.WebPages.Razor.WebPageRazorHost
A default host.
Show: