VCProjectReference.Identity 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
所引用的程序集的标识。
public:
property System::String ^ Identity { System::String ^ get(); };
public:
property Platform::String ^ Identity { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(2002)]
public string Identity { [System.Runtime.InteropServices.DispId(2002)] get; }
[<System.Runtime.InteropServices.DispId(2002)>]
[<get: System.Runtime.InteropServices.DispId(2002)>]
member this.Identity : string
Public ReadOnly Property Identity As String
属性值
一个字符串,表示已引用程序集的标识。
实现
- 属性
示例
有关如何编译和运行此示例的信息,请参阅 如何:编译项目模型扩展性的示例代码 。
下面的示例列出 Identity 程序集引用的属性值:
' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a
' Visual C++ project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
Sub Test()
Dim prj As VCProject
Dim vcar As VCAssemblyReference
prj = DTE.Solution.Projects.Item(1).Object
vcar = prj.VCReferences.item(1)
MsgBox("Identity: " & vcar.Identity)
End Sub
End Module