IVsContainedLanguageHost::InsertImportsDirective Method (UInt16)

 

Inserts a markup tag that imports the specified namespace.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

int InsertImportsDirective(
	[InAttribute] unsigned short% __MIDL_0011
)

Parameters

__MIDL_0011
Type: System::UInt16

[in] A string specifying the fully qualified namespace to import.

Return Value

Type: System::Int32

If successful, returns S_OK; otherwise, returns an error code.

If this method is given a namespace such as "System.Web.UI" and this method is implemented by an editor that uses ASP.NET, then the following markup is inserted:

<%@import namespace="System.Web.UI" %>
Return to top
Show: