ElementGroupPrototype 類別

包含要重新建立一組項目和連結所需的資訊。用來儲存在 [工具] 剪貼簿],並在拖曳作業中的項目。

繼承階層架構

System.Object
  Microsoft.VisualStudio.Modeling.ElementGroupPrototype

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

語法

'宣告
<SerializableAttribute> _
Public NotInheritable Class ElementGroupPrototype _
    Implements ISerializable, IDeserializationCallback
[SerializableAttribute]
public sealed class ElementGroupPrototype : ISerializable, 
    IDeserializationCallback

ElementGroupPrototype 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 ElementGroupPrototype(ElementGroup, IEnumerable<ModelElement>) 建構函式
公用方法 ElementGroupPrototype(Partition, Guid) 建構函式主修 rool 網域識別碼。這用來判斷是否可以在 [父項目] 下合併項目。
公用方法 ElementGroupPrototype(Partition, ICollection<ModelElement>, ElementGroup) 建構函式

回頁首

屬性

  名稱 說明
公用屬性 ProtoElementLinks 取得所有的 ProtoElementLinks ElementGroupPrototype 中所包含的集合。
公用屬性 ProtoElements 取得所有的 ProtoElements ElementGroupPrototype 中所包含的集合。
公用屬性 RootProtoElements 取得集合的所有根 ElementGroupPrototype 中所含的 ProtoElements。
公用屬性 SourceContext 傳回此 ElementGroupPrototype 來源 ElementGroupContext 物件
公用屬性 SourceRootElementIds 從來源內容會傳回根項目 id 的唯讀清單
公用屬性 TargetContext 傳回此 ElementGroupPrototype 目標 ElementGroupContext 物件
公用屬性 TargetRootElementIds 傳回唯讀的根項目 id 清單從目標內容
公用屬性 TopLevelProtoGroup 這個 ElementGroupPrototype 代表群組的原型
公用屬性 UserData 使用者自訂資料物件,從最外層之項目群組

回頁首

方法

  名稱 說明
公用方法 CanCreateElementGroup(Partition) 這個原型項目群組可以在指定的磁碟分割建立祖項目群組的複本嗎?
公用方法 CanCreateElementGroup(Store) 這個原型項目群組可以在指定的存放區中建立複製品祖項目群組的嗎?
公用方法 CanCreateElementGroup(Partition, IElementPartitionMapper) 這個原型項目群組可以在指定的磁碟分割建立祖項目群組的複本嗎?
公用方法 CreateElementGroup(Partition) 建立祖項目群組的複本
公用方法 CreateElementGroup(Store) 建立祖項目群組的複本
公用方法 CreateElementGroup(Partition, IElementPartitionMapper) 建立祖項目群組的複本
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法 GetObjectData 填入序列化資訊,以序列化這個物件所需的資料。
公用方法 GetProtoElement 取得對應於指定之 id 的 ProtoElement。
公用方法 GetProtoLink 取得對應於指定之 id 的 ProtoLink。
公用方法 GetProtoLinks 傳回包含在傳遞的 DomainRoleId 中扮演傳遞的 ProtoElementBase IList 的 ProtoLink 物件。
公用方法靜態成員 GetReconstitutedElement 傳回給定的 guid,來源 ModelElement 的 reconstituted 的 ModelElement。
公用方法 GetSourceRootElementId 取得來源根 ModelElement 相對於指定的目標根 ModelElement id 的 id。如果沒有找到,則會傳回 Guid.Empty。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 IsInRole 如果傳遞的 ProtoElementBase 可以播放這 ElementGroupPrototype 中傳遞的角色,則傳回 true。
公用方法 ResolveProtoLinks 將播放中傳遞的 DomainRoleId ProtoElements 解決傳遞的 IList 的 ProtoLinks。
公用方法 ToString() 傳回表示目前物件的字串。 (繼承自 Object)。
公用方法 ToString(Partition) 傾印出的項目和 ElementLinks,在此 ElementGroupPrototype,提供 DomainClass 定義所提供的磁碟分割中的名稱。

回頁首

欄位

  名稱 說明
公用欄位靜態成員 CreatingKey 內容資訊搜尋的索引鍵
公用欄位靜態成員 DefaultDataFormatName 預設的資料設定格式為 ElementGroupPrototype 的名稱。
公用欄位靜態成員 ElementGroupIdDictionary 金鑰用於 TargetContext ElementGroupContext 中的項目 Id 的字典與根項目 (Id) 清單。
公用欄位靜態成員 RootElementIdList 機碼用在來源和目標內容 ElementGroupContext 的 RootElement 識別碼清單與根項目 (Id) 清單。
公用欄位靜態成員 RootElementList [RootElement 清單] 和 [根項目清單的來源和目標內容 ElementGroupContext 中所使用的金鑰。

回頁首

明確介面實作

  名稱 說明
明確介面實作私用方法 IDeserializationCallback.OnDeserialization 圖表] 是完全載入時,還原序列化物件

回頁首

備註

ElementGroupPrototype (EGP) 包含一種模式的項目,並可用來建立合併列印作業中的一組新的項目和連結的連結。在合併,EGP 用來建立ElementGroup,然後會連結到目標模型中的項目。

EGPs 適用於下列用途:

  • 若要包含的資訊,在拖曳作業。

  • 若要將資訊儲存於剪貼簿。

  • 若要在工具箱中儲存物件的模式。

如需詳細資訊,請參閱 HOW TO:程式複製和貼上行為 - 重新導向HOW TO:加入拖放處理常式

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.Modeling 命名空間