VSProject.Project Property
Gets the generic Project object associated with the Visual Basic or Visual C# project. Read-only.
Namespace: VSLangProj
Assembly: VSLangProj (in VSLangProj.dll)
Syntax
'Declaration
ReadOnly Property Project As Project
Get
Project Project { get; }
property Project^ Project {
Project^ get ();
}
abstract Project : Project
function get Project () : Project
Property Value
Type: EnvDTE.Project
Returns a Project object.
Remarks
The VSProject object is a property of a generic Project object. The Project property provides access to the general extensibility Project object.
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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.