VCAssemblyReference.Label 属性

获取引用的程序集的显示名称。

命名空间:  Microsoft.VisualStudio.VCProjectEngine
程序集:  Microsoft.VisualStudio.VCProjectEngine(在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

语法

声明
ReadOnly Property Label As String
string Label { get; }
property String^ Label {
    String^ get ();
}
abstract Label : string with get
function get Label () : String

属性值

类型:System.String
引用的程序集的显示名称。

备注

有关如何编译和运行此示例的信息,请参见 如何:编译项目模型扩展性示例代码

示例

下面的示例代码列出程序集引用的 Label 属性的值:

' 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("Label: " & vcar.Label)
    End Sub
End Module

.NET Framework 安全性

请参见

参考

VCAssemblyReference 接口

Microsoft.VisualStudio.VCProjectEngine 命名空间