VCAssemblyReference.project 属性

定义

获取 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

属性值

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

适用于