Condividi tramite


Proprietà VCProject.VCReferences

ottiene la raccolta di riferimenti per il progetto selezionato.

Spazio dei nomi:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Sintassi

'Dichiarazione
ReadOnly Property VCReferences As Object
Object VCReferences { get; }
property Object^ VCReferences {
    Object^ get ();
}
abstract VCReferences : Object with get
function get VCReferences () : Object

Valore proprietà

Tipo: System.Object
Raccolta di riferimenti per il progetto selezionato.

Esempi

vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto per informazioni su come compilare ed eseguire l'esempio.

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ project that contains a reference loaded before running 
' this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim ref As VCReference

        prj = DTE.Solution.Item(1).Object
        ref = prj.VCReferences.Item(1)
        MsgBox("Reference name: " & ref.Name)
        MsgBox("Reference path: " & ref.FullPath)
    End Sub
End Module

Sicurezza di .NET Framework

Vedere anche

Riferimenti

VCProject Interfaccia

Spazio dei nomi Microsoft.VisualStudio.VCProjectEngine