Share via


WebPageRazorHost.AddGlobalImport Method

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

Adds a global import on the webpage.

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

Syntax

'Declaration
Public Shared Sub AddGlobalImport ( _
    ns As String _
)
'Usage
Dim ns As String 

WebPageRazorHost.AddGlobalImport(ns)
public static void AddGlobalImport(
    string ns
)
public:
static void AddGlobalImport(
    String^ ns
)
static member AddGlobalImport : 
        ns:string -> unit
public static function AddGlobalImport(
    ns : String
)

Parameters

See Also

Reference

WebPageRazorHost Class

System.Web.WebPages.Razor Namespace