ImmutabilityExtensionMethods.CanDeleteElements(Partition, IEnumerable<ModelElement>, Guid[]) 方法

定義

查詢是否可刪除指定的專案集合,並將任何適用于專案完整刪除結束專案的 IMS 鎖定列入考慮。 如果關閉中的任何專案已被鎖定,或任何專案是以 RolePlayer 鎖定的專案為來源的連結目標,且該專案在關閉範圍之外,則無法刪除元素。

public:
[System::Runtime::CompilerServices::Extension]
 static bool CanDeleteElements(Microsoft::VisualStudio::Modeling::Partition ^ partition, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ rootElements, ... cli::array <Guid> ^ domainRolesToNotPropagate);
public static bool CanDeleteElements (this Microsoft.VisualStudio.Modeling.Partition partition, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.ModelElement> rootElements, params Guid[] domainRolesToNotPropagate);
static member CanDeleteElements : Microsoft.VisualStudio.Modeling.Partition * seq<Microsoft.VisualStudio.Modeling.ModelElement> * Guid[] -> bool
<Extension()>
Public Function CanDeleteElements (partition As Partition, rootElements As IEnumerable(Of ModelElement), ParamArray domainRolesToNotPropagate As Guid()) As Boolean

參數

partition
Partition

此磁碟分割

rootElements
IEnumerable<ModelElement>

要刪除之物件圖形的根目錄

domainRolesToNotPropagate
Guid[]

網域角色識別碼-s 的清單,不應傳播刪除。

傳回

Boolean

適用於