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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
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.PartitionThe partition to use where the mapper doesn't have an alternative
domainClassId
Type: GuidThe 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.