Condividi tramite


IElementPartitionMapper.PartitionForClass(Partition, Guid) Method

Definition

Determine the partition to be used as the default for instantiation of elements of the specified class

public:
 Microsoft::VisualStudio::Modeling::Partition ^ PartitionForClass(Microsoft::VisualStudio::Modeling::Partition ^ defaultPartition, Guid domainClassId);
public Microsoft.VisualStudio.Modeling.Partition PartitionForClass (Microsoft.VisualStudio.Modeling.Partition defaultPartition, Guid domainClassId);
abstract member PartitionForClass : Microsoft.VisualStudio.Modeling.Partition * Guid -> Microsoft.VisualStudio.Modeling.Partition
Public Function PartitionForClass (defaultPartition As Partition, domainClassId As Guid) As Partition

Parameters

defaultPartition
Partition

The partition to use where the mapper doesn't have an alternative

domainClassId
Guid

The id of the domain class of which an instance is being created

Returns

Partition in which to create an element of the specified class

Remarks

In some cases the partition for an element may be ambiguous given only the element type, in which case the returned partition is down to the arbitrary choice of the partition mapper.

Applies to