Udostępnij za pośrednictwem


VCAssemblyReference.project Property

Definition

Gets the generic Project object associated with the Visual Basic or Visual C# project. This property is read-only.

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

Property Value

A project object.

Implements

Attributes

Examples

' 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  

Remarks

The VSProject object is a property of a generic project object. The project property provides access to the general extensibility Project object.

Applies to