Compartir a través de


VSProject.Project (Propiedad)

Obtiene el objeto Project genérico asociado al proyecto de Visual Basic o Visual C#. Solo lectura.

Espacio de nombres:  VSLangProj
Ensamblado:  VSLangProj (en VSLangProj.dll)

Sintaxis

'Declaración
ReadOnly Property Project As Project
Project Project { get; }
property Project^ Project {
    Project^ get ();
}
abstract Project : Project with get
function get Project () : Project

Valor de propiedad

Tipo: Project
Devuelve un objeto Project.

Comentarios

El objeto VSProject es una propiedad de un objeto Project genérico. La propiedad Project proporciona acceso al objeto Project de extensibilidad general.

Ejemplos

[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

Seguridad de .NET Framework

Vea también

Referencia

VSProject Interfaz

VSLangProj (Espacio de nombres)