IElementPartitionMapper.PartitionForElement Method
Determine the partition to be used to reconstitute a prototype element
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Déclaration
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
- groupPrototype
Type: Microsoft.VisualStudio.Modeling.ElementGroupPrototype
The ElementGroupPrototype containing protoElement
- mergePartition
Type: Microsoft.VisualStudio.Modeling.Partition
The merge target partition. Not necessarily where the elements will be reconstituted.
- protoElement
Type: Microsoft.VisualStudio.Modeling.ProtoElement
The prototype element being (or to be) reconstituted
- 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
- 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.