VCAssemblyReference.project 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取 Project 与或项目关联的泛型 Visual Basic 对象 Visual C# 。 此属性为只读。
public:
property System::Object ^ project { System::Object ^ get(); };
public:
property Platform::Object ^ project { Platform::Object ^ get(); };
[System.Runtime.InteropServices.DispId(676)]
public object project { [System.Runtime.InteropServices.DispId(676)] get; }
[<System.Runtime.InteropServices.DispId(676)>]
[<get: System.Runtime.InteropServices.DispId(676)>]
member this.project : obj
Public ReadOnly Property project As Object
属性值
一个项目对象。
实现
- 属性
示例
' Macro Editor
Imports VSLangProj
' Displays whether project has unsaved changes.
Sub IsProjectSaved(ByVal aVSProject As VSProject)
Dim theProject As EnvDTE.Project
theProject = aVSProject.Project
If (theProject.Saved) Then
MsgBox(theProject.Name & " is saved.")
Else
MsgBox(theProject.Name & " is not saved.")
End If
End Sub
注解
VSProject对象是泛型项目对象的一个属性。 project属性提供对常规扩展性对象的访问权限 Project 。