Partager via


IVsContainedLanguageHost.InsertImportsDirective Method

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)

Syntax

'Declaration
Function InsertImportsDirective ( _
    ByRef __MIDL_0011 As UShort _
) As Integer
int InsertImportsDirective(
    ref ushort __MIDL_0011
)
int InsertImportsDirective(
    [InAttribute] unsigned short% __MIDL_0011
)
abstract InsertImportsDirective : 
        __MIDL_0011:uint16 byref -> int
function InsertImportsDirective(
    __MIDL_0011 : ushort
) : int

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.

Remarks

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" %>

.NET Framework Security

See Also

Reference

IVsContainedLanguageHost Interface

Microsoft.VisualStudio.TextManager.Interop Namespace