Share via


RazorTemplateEngine.Host Property

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

Gets or sets the RazorEngineHost which defines the environment in which the generated template code will live.

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

Syntax

'Declaration
Public Property Host As RazorEngineHost 
    Get 
    Private Set
'Usage
Dim instance As RazorTemplateEngine 
Dim value As RazorEngineHost 

value = instance.Host
public RazorEngineHost Host { get; private set; }
public:
property RazorEngineHost^ Host {
    RazorEngineHost^ get ();
    private: void set (RazorEngineHost^ value);
}
member Host : RazorEngineHost with get, private set
function get Host () : RazorEngineHost 
private function set Host (value : RazorEngineHost)

Property Value

Type: System.Web.Razor.RazorEngineHost
The RazorEngineHost which defines the environment in which the generated template code will live.

See Also

Reference

RazorTemplateEngine Class

System.Web.Razor Namespace