Partition 類別

提供存放區中的項目的邏輯的容器。

繼承階層架構

System.Object
  Microsoft.VisualStudio.Modeling.Partition

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

語法

'宣告
Public NotInheritable Class Partition _
    Implements IDisposable
public sealed class Partition : IDisposable

Partition 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 Partition 建構函式

回頁首

屬性

  名稱 說明
公用屬性 AlternateId 用於 AlternateId
公用屬性 Contexts 所參考的磁碟分割的內容。字典索引鍵,是內容。字典的值是內容執行個體。
公用屬性 DirtyCount 指出磁碟分割的變更數目。
公用屬性 DomainDataDirectory 屬於此磁碟分割的儲存區取得網域資訊的目錄。
公用屬性 ElementDirectory 目錄磁碟分割內所包含的項目。
公用屬性 ElementFactory 模型 ElementFactory
公用屬性 Id 這個磁碟分割識別碼。
公用屬性 IsDirty 磁碟分割處於正常狀態時,則代表 true。
公用屬性 IsReadOnly 取得這個磁碟分割是否為唯讀。
公用屬性 StateId 定義所處的狀態 StateId 這個磁碟分割物件處於。
公用屬性 Store 屬於存放區的磁碟分割。

回頁首

方法

  名稱 說明
公用方法 AddContext 新增內容到磁碟分割
公用方法 DeleteElements 刪除根目錄項目指定之集合中物件圖形。
公用方法 Dispose 處置這個物件的狀態。
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
公用方法靜態成員 FindByAlternateId 找出其 AlternateKey 磁碟分割
公用方法 GetClosureList(ICollection<ModelElement>, ClosureType) 取得根據指定的根項目清單的指定型別的終止清單
公用方法 GetClosureList(ICollection<ModelElement>, ClosureType, Boolean) 取得根據指定的根項目清單的指定型別的終止清單
公用方法 GetClosureList(ICollection<ModelElement>, ClosureType, IEnumerable<DomainRoleInfo>) 取得根據指定的根項目清單的指定型別的終止清單
公用方法 GetClosureList(ICollection<ModelElement>, ClosureType, Boolean, IEnumerable<DomainRoleInfo>) 取得根據指定的根項目清單的指定型別的終止清單
公用方法 GetClosureList(ICollection<ModelElement>, ClosureType, IEnumerable<DomainRoleInfo>, IEnumerable<DomainRoleInfo>) 取得根據指定的根項目清單的指定型別的終止清單
公用方法 GetClosureList(ICollection<ModelElement>, ClosureType, Boolean, IEnumerable<DomainRoleInfo>, IEnumerable<DomainRoleInfo>) 取得根據指定的根項目清單的指定型別的終止清單
公用方法 GetClosurePrototypeGroup(ICollection<ModelElement>, ClosureType) 建立指定的終止型別,根據指定的根項目清單的 ElementGroupPrototype
公用方法 GetClosurePrototypeGroup(ICollection<ModelElement>, ClosureType, Boolean) 建立指定的終止型別,根據指定的根項目清單的 ElementGroupPrototype
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 RemoveContext 若要移除的磁碟分割的內容的方法
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

事件

  名稱 說明
公用事件 PartitionDisposing 允許接收 PartitionDisposing 事件的用戶端

回頁首

擴充方法

  名稱 說明
公用擴充方法 CanDeleteElements 查詢是否可以刪除指定的一組項目,鎖定適用於任何在完整的項目納入考量任何 IMS 刪除結案的項目。無法刪除項目,是否到 closure 中的任何項目刪除已鎖定,或者如果任何項目做為目標的 RolePlayer 鎖定的項目上取得資料來源的連結,而且該項目超出終止。 (以 ImmutabilityExtensionMethods 定義。)
公用擴充方法 GetLocks 這個磁碟分割執行個體取得鎖定旗標。這會包括任何包含的磁碟分割的儲存區上啟用的鎖定。 (以 ImmutabilityExtensionMethods 定義。)
公用擴充方法 IsLocked 測試是否這個磁碟分割有任何一組指定的鎖定 (以 ImmutabilityExtensionMethods 定義。)
公用擴充方法 SetLocks 設定指定的磁碟分割執行個體的鎖定旗標 (以 ImmutabilityExtensionMethods 定義。)

回頁首

備註

儲存區可以有任意數目的資料分割。在大部分的情況下,儲存區只使用一個磁碟分割,也就所謂預設資料分割。如果您未做任何變更預設行為,所有的項目是位於預設磁碟分割。

當您建立的項目時,您可以指定哪一個磁碟分割您想要參與。

磁碟分割提供了您分成不同的邏輯群組中的項目和模型的連結。使用多個磁碟分割的原因之一是隔離的復原和取消復原到不同的磁碟分割中的不同佇列的動作。復原和取消復原動作會套用到磁碟分割。

執行緒安全

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

請參閱

參考

Microsoft.VisualStudio.Modeling 命名空間

其他資源

[重新導向] 產生的 API 中的網域類別

Providing Custom Constructors