VSProject.Imports 属性

更新:2007 年 11 月

获取与项目关联的 Imports 对象。对于 C# 项目,将 Imports 属性设置为 Nothing(nullnull 引用(在 Visual Basic 中为 Nothing) 引用)。只读。

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

语法

声明
ReadOnly Property Imports As Imports
用法
Dim instance As VSProject
Dim value As Imports

value = instance.Imports
Imports Imports { get; }
property Imports^ Imports {
    Imports^ get ();
}
function get Imports () : Imports

属性值

类型:VSLangProj.Imports

返回一个 Imports 对象集合。

备注

C# 项目没有项目导入。对于 C# 项目,Imports 的值为 Nothing(nullnull 引用(在 Visual Basic 中为 Nothing) 引用)。

示例

请参见 Imports

权限

另请参见

参考

VSProject 接口

VSProject 成员

VSLangProj 命名空间