更新: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
属性值
返回一个 Imports 对象集合。
备注
C# 项目没有项目导入。对于 C# 项目,Imports 的值为 Nothing(nullnull 引用(在 Visual Basic 中为 Nothing) 引用)。
示例
请参见 Imports。
权限
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。