다음을 통해 공유


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

‘선언
Function InsertImportsDirective ( _
    ByRef __MIDL_0011 As UShort _
) As Integer
‘사용 방법
Dim instance As IVsContainedLanguageHost
Dim __MIDL_0011 As UShort
Dim returnValue As Integer

returnValue = instance.InsertImportsDirective(__MIDL_0011)
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

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT InsertImportsDirective(
   [in]const WCHAR * pwcImportP
);

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

IVsContainedLanguageHost Members

Microsoft.VisualStudio.TextManager.Interop Namespace