ElementGroupPrototype.CanCreateElementGroup 方法 (Partition, IElementPartitionMapper)
這個原型項目群組可以在指定的磁碟分割建立祖項目群組的複本嗎?
命名空間: Microsoft.VisualStudio.Modeling
組件: Microsoft.VisualStudio.Modeling.Sdk.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)
語法
'宣告
Public Function CanCreateElementGroup ( _
partition As Partition, _
partitionMapper As IElementPartitionMapper _
) As Boolean
public bool CanCreateElementGroup(
Partition partition,
IElementPartitionMapper partitionMapper
)
參數
- partition
型別:Microsoft.VisualStudio.Modeling.Partition
目標項目群組,不一定會建立元素的磁碟分割的磁碟分割
- partitionMapper
型別:Microsoft.VisualStudio.Modeling.IElementPartitionMapper
IElementPartitionMapper 用來識別實際的磁碟分割將會建立項目。
傳回值
型別:System.Boolean
是否可以建立複製品
備註
這是兩個組件檢查: (1) 是輸入的存放區版本相同或晚於祖儲存的版本 (2) 網域的所有類別建立所都需的項目和 ElementLinks 的存放區中
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。