IMergeElements.CanMerge Method

Indicates whether the source element can be added to this element.

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

Syntax

'Declaration
Function CanMerge ( _
    rootElement As ProtoElementBase, _
    elementGroupPrototype As ElementGroupPrototype _
) As Boolean
'Usage
Dim instance As IMergeElements 
Dim rootElement As ProtoElementBase 
Dim elementGroupPrototype As ElementGroupPrototype 
Dim returnValue As Boolean 

returnValue = instance.CanMerge(rootElement, _
    elementGroupPrototype)
bool CanMerge(
    ProtoElementBase rootElement,
    ElementGroupPrototype elementGroupPrototype
)
bool CanMerge(
    ProtoElementBase^ rootElement, 
    ElementGroupPrototype^ elementGroupPrototype
)
function CanMerge(
    rootElement : ProtoElementBase, 
    elementGroupPrototype : ElementGroupPrototype
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the source element represented by the ProtoElement can be added to this target element; otherwise, false.

Remarks

The source element is represented by the specified root ProtoElement.

If the rootElement is nulla null reference (Nothing in Visual Basic), the ElementGroupPrototype does not contain a ProtoElements property value and the code should inspect the ElementGroupPrototype context information.

.NET Framework Security

See Also

Reference

IMergeElements Interface

IMergeElements Members

Microsoft.VisualStudio.Modeling Namespace