Condividi tramite


ModelElement.CanMerge Method

Verifies whether a source element can be added to this element.

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

Syntax

'Dichiarazione
Protected Overridable Function CanMerge ( _
    rootElement As ProtoElementBase, _
    elementGroupPrototype As ElementGroupPrototype _
) As Boolean
protected virtual bool CanMerge(
    ProtoElementBase rootElement,
    ElementGroupPrototype elementGroupPrototype
)
protected:
virtual bool CanMerge(
    ProtoElementBase^ rootElement, 
    ElementGroupPrototype^ elementGroupPrototype
)
abstract CanMerge : 
        rootElement:ProtoElementBase * 
        elementGroupPrototype:ElementGroupPrototype -> bool 
override CanMerge : 
        rootElement:ProtoElementBase * 
        elementGroupPrototype:ElementGroupPrototype -> bool 
protected 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

Accept merges of extensions, or any supplementary elements that extensions are prepared to merge

.NET Framework Security

See Also

Reference

ModelElement Class

Microsoft.VisualStudio.Modeling Namespace