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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。