共用方式為


ClassViewNavigationInfo.GetData 方法

取得顯示在樹狀檢視中的節點為項目的相關資訊。

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

語法

'宣告
Public Shared Function GetData ( _
    data As IDataObject _
) As ClassViewNavigationInfoNode()
public static ClassViewNavigationInfoNode[] GetData(
    IDataObject data
)

參數

傳回值

型別:array<Microsoft.VisualStudio.Modeling.Shell.ClassViewNavigationInfoNode[]
顯示樹狀檢視中的節點為項目的相關資訊。

備註

下表列出適用於每個項目所傳回的資訊:

項目

描述

專案名稱

指定的項目所在的專案名稱。

參考名稱

項目的參考名稱。

完整名稱

完整格式的小數點 (.) 分隔項目的名稱。

節點型別

指定的項目所在的節點型別。 如需有關可用的節點類型的詳細資訊,請參閱ClassViewNavigationInfoTypes

.NET Framework 安全性

請參閱

參考

ClassViewNavigationInfo 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間