VSProject.Project Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the generic Project object associated with the Visual Basic or Visual C# project. Read-only.
public:
property EnvDTE::Project ^ Project { EnvDTE::Project ^ get(); };
public:
property EnvDTE::Project ^ Project { EnvDTE::Project ^ get(); };
[System.Runtime.InteropServices.DispId(4)]
public EnvDTE.Project Project { [System.Runtime.InteropServices.DispId(4)] get; }
[<System.Runtime.InteropServices.DispId(4)>]
[<get: System.Runtime.InteropServices.DispId(4)>]
member this.Project : EnvDTE.Project
Public ReadOnly Property Project As Project
Property Value
Returns a Project object.
- Attributes
Examples
[Visual Basic]
' 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.