ElementGroupPrototype.CanCreateElementGroup Method (Partition, IElementPartitionMapper)
Can this prototype element group create a clone of the progenitor element group in the indicated partition?
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
'Declaração
Public Function CanCreateElementGroup ( _
partition As Partition, _
partitionMapper As IElementPartitionMapper _
) As Boolean
public bool CanCreateElementGroup(
Partition partition,
IElementPartitionMapper partitionMapper
)
public:
bool CanCreateElementGroup(
Partition^ partition,
IElementPartitionMapper^ partitionMapper
)
member CanCreateElementGroup :
partition:Partition *
partitionMapper:IElementPartitionMapper -> bool
public function CanCreateElementGroup(
partition : Partition,
partitionMapper : IElementPartitionMapper
) : boolean
- partition
Type: Microsoft.VisualStudio.Modeling.Partition
The partition of the target element for the group, not necessarily the partition where the elements will be created
- partitionMapper
Type: Microsoft.VisualStudio.Modeling.IElementPartitionMapper
IElementPartitionMapper used to identify the actual partitions in which elements will be created.
Type: System.Boolean
Whether the clone can be created
This is a two part check: (1) Is the input stores version the same or later than the progenitor store's version (2) Are all the domain classes required to create the Elements and ElementLinks present in the store
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.