共用方式為


VCAssemblyReference.VCReferences 屬性

取得所選取專案的參考集合。

命名空間:  Microsoft.VisualStudio.VCProjectEngine
組件:  Microsoft.VisualStudio.VCProjectEngine (在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

語法

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

屬性值

型別:System.Object
所選取專案的參考集合。

範例

' 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

.NET Framework 安全性

請參閱

參考

VCAssemblyReference 介面

Microsoft.VisualStudio.VCProjectEngine 命名空間