DesignSurfaceElementOperations.GetTargetDiagramId 方法
取得圖表祕透過 ElementGroupPrototype 合併/CanMerge 源自於這個類別的執行個體的 Id。
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)
語法
'宣告
Public Shared Function GetTargetDiagramId ( _
elementGroupPrototype As ElementGroupPrototype _
) As Guid
public static Guid GetTargetDiagramId(
ElementGroupPrototype elementGroupPrototype
)
參數
- elementGroupPrototype
型別:Microsoft.VisualStudio.Modeling.ElementGroupPrototype
傳回值
型別:System.Guid
目標圖表中或如果沒有設定 EGP 的目標內容中的 Guid.Empty 的識別碼。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。