VCAssemblyReference.VCReferences 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取所选项目的引用的集合。
public:
property System::Object ^ VCReferences { System::Object ^ get(); };
public:
property Platform::Object ^ VCReferences { Platform::Object ^ get(); };
[System.Runtime.InteropServices.DispId(2017)]
public object VCReferences { [System.Runtime.InteropServices.DispId(2017)] get; }
[<System.Runtime.InteropServices.DispId(2017)>]
[<get: System.Runtime.InteropServices.DispId(2017)>]
member this.VCReferences : obj
Public ReadOnly Property VCReferences As 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