VCAssemblyReference.project Property

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

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

声明
ReadOnly Property project As Object
用法
Dim instance As VCAssemblyReference
Dim value As Object

value = instance.project
Object project { get; }
property Object^ project {
    Object^ get ();
}
function get project () : Object

Property Value

Type: System.Object

A project object.

Implements

VCReference.project

Remarks

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

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

Permissions

See Also

Reference

VCAssemblyReference Interface

VCAssemblyReference Members

Microsoft.VisualStudio.VCProjectEngine Namespace