Partager via


IElementPartitionMapper.PartitionForElement Method

Determine the partition to be used to reconstitute a prototype element

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
Function PartitionForElement ( _
    groupPrototype As ElementGroupPrototype, _
    mergePartition As Partition, _
    protoElement As ProtoElement, _
    cookie As Object _
) As Partition
Partition PartitionForElement(
    ElementGroupPrototype groupPrototype,
    Partition mergePartition,
    ProtoElement protoElement,
    Object cookie
)
Partition^ PartitionForElement(
    ElementGroupPrototype^ groupPrototype, 
    Partition^ mergePartition, 
    ProtoElement^ protoElement, 
    Object^ cookie
)
abstract PartitionForElement : 
        groupPrototype:ElementGroupPrototype * 
        mergePartition:Partition * 
        protoElement:ProtoElement * 
        cookie:Object -> Partition
function PartitionForElement(
    groupPrototype : ElementGroupPrototype, 
    mergePartition : Partition, 
    protoElement : ProtoElement, 
    cookie : Object
) : Partition

Parameters

  • cookie
    Type: System.Object

    The object returned by this partition mapper when BeginMapping was called. Can be null if not used.

Return Value

Type: Microsoft.VisualStudio.Modeling.Partition
Partition in which to reconstitute the element

.NET Framework Security

See Also

Reference

IElementPartitionMapper Interface

Microsoft.VisualStudio.Modeling Namespace