共用方式為


DepthFirstElementAndLinkWalker.GetRelatedElements 方法

取得應依造訪順序瀏覽的緊鄰項目清單。

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

語法

'宣告
Protected Overrides Function GetRelatedElements ( _
    element As ModelElement _
) As IList(Of ModelElement)
protected override IList<ModelElement> GetRelatedElements(
    ModelElement element
)

參數

傳回值

類型:System.Collections.Generic.IList<ModelElement>
相關項目的清單。

備註

覆寫此變更存取命令。 預設實作是由未篩選的所有連結的模型項目,後面接著未篩選的所有連結。

.NET Framework 安全性

請參閱

參考

DepthFirstElementAndLinkWalker 類別

Microsoft.VisualStudio.Modeling 命名空間