共用方式為


ElementGroupPrototype.GetSourceRootElementId 方法

取得對應至指定目標根 ModelElement ID 的來源根 ModelElement 的 ID。 如果找不到它,則會傳回 Guid.Empty。

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

語法

'宣告
Public Function GetSourceRootElementId ( _
    targetRootElementId As Guid _
) As Guid
public Guid GetSourceRootElementId(
    Guid targetRootElementId
)

參數

  • targetRootElementId
    類型:System.Guid
    目標根 ModelElement 的 ID。

傳回值

類型:System.Guid
對應至指定目標根 ModelElement ID 的來源根 ModelElement 的 ID。

.NET Framework 安全性

請參閱

參考

ElementGroupPrototype 類別

Microsoft.VisualStudio.Modeling 命名空間