Share via


WebRazorHostFactory.CreateHostFromConfig Method (String)

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

Creates a host from the configuration.

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

Syntax

'Declaration
Public Shared Function CreateHostFromConfig ( _
    virtualPath As String _
) As WebPageRazorHost
'Usage
Dim virtualPath As String 
Dim returnValue As WebPageRazorHost 

returnValue = WebRazorHostFactory.CreateHostFromConfig(virtualPath)
public static WebPageRazorHost CreateHostFromConfig(
    string virtualPath
)
public:
static WebPageRazorHost^ CreateHostFromConfig(
    String^ virtualPath
)
static member CreateHostFromConfig : 
        virtualPath:string -> WebPageRazorHost
public static function CreateHostFromConfig(
    virtualPath : String
) : WebPageRazorHost

Parameters

  • virtualPath
    Type: System.String
    The virtual path to the target file.

Return Value

Type: System.Web.WebPages.Razor.WebPageRazorHost
A host from the configuration.

See Also

Reference

WebRazorHostFactory Class

CreateHostFromConfig Overload

System.Web.WebPages.Razor Namespace