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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。