Imports.Item 方法

更新:2007 年 11 月

返回 Imports 对象的索引成员。Item 方法是 Imports 对象的默认方法。

命名空间:  VSLangProj
程序集:  VSLangProj(在 VSLangProj.dll 中)

语法

声明
Function Item ( _
    lIndex As Integer _
) As String
用法
Dim instance As Imports
Dim lIndex As Integer
Dim returnValue As String

returnValue = instance(lIndex)
string Item(
    int lIndex
)
String^ Item(
    [InAttribute] int lIndex
)
function Item(
    lIndex : int
) : String

参数

返回值

类型:System.String

按导入语句字符串在集合中的位置返回该字符串。

备注

Item 方法检索导入语句。若要更改导入语句,请使用 Remove 方法删除当前的导入语句,然后使用 Add 方法添加新的导入语句。

示例

请参见 Imports

权限

另请参见

参考

Imports 接口

Imports 成员

VSLangProj 命名空间