IVsContainedLanguageHost.InsertImportsDirective 方法

插入导入所指定的命名空间的标记。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)

语法

声明
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

参数

  • __MIDL_0011
    类型:UInt16%

    [in] 指定完全限定命名空间的字符串导入。

返回值

类型:Int32
如果成功,则返回; S_OK否则,返回错误代码。

备注

如果提供了此方法命名空间 (如 “System.Web.UI”,并且此方法由使用 ASP.NET的编辑器执行,则插入以下标记:

<%@import namespace="System.Web.UI" %>

.NET Framework 安全性

请参阅

参考

IVsContainedLanguageHost 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间