IElementPartitionMapper.PartitionForClass Method
Determine the partition to be used as the default for instantiation of elements of the specified class
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaração
Function PartitionForClass ( _
defaultPartition As Partition, _
domainClassId As Guid _
) As Partition
Partition PartitionForClass(
Partition defaultPartition,
Guid domainClassId
)
Partition^ PartitionForClass(
Partition^ defaultPartition,
Guid domainClassId
)
abstract PartitionForClass :
defaultPartition:Partition *
domainClassId:Guid -> Partition
function PartitionForClass(
defaultPartition : Partition,
domainClassId : Guid
) : Partition
Parameters
- defaultPartition
Type: Microsoft.VisualStudio.Modeling.Partition
The partition to use where the mapper doesn't have an alternative
- domainClassId
Type: System.Guid
The id of the domain class of which an instance is being created
Return Value
Type: Microsoft.VisualStudio.Modeling.Partition
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.
.NET Framework Security
- 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.