Freigeben über


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

'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

  • 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

See Also

Reference

IElementPartitionMapper Interface

Microsoft.VisualStudio.Modeling Namespace