Imports.Item 方法

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

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

语法

声明
Function Item ( _
    lIndex As Integer _
) As String
string Item(
    int lIndex
)
String^ Item(
    [InAttribute] int lIndex
)
abstract Item : 
        lIndex:int -> string
function Item(
    lIndex : int
) : String

参数

  • lIndex
    类型:Int32

    必选。 Imports 对象中的从一开始的索引。

返回值

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

备注

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

示例

请参见Imports

.NET Framework 安全性

请参阅

参考

Imports 接口

VSLangProj 命名空间