ElementOperations.MarkRootElements Method
Mark RootElements in the elementGroup parameter.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaração
Protected Overridable Sub MarkRootElements ( _
elementGroup As ElementGroup, _
elements As ICollection(Of ModelElement), _
closureType As ClosureType _
)
protected virtual void MarkRootElements(
ElementGroup elementGroup,
ICollection<ModelElement> elements,
ClosureType closureType
)
protected:
virtual void MarkRootElements(
ElementGroup^ elementGroup,
ICollection<ModelElement^>^ elements,
ClosureType closureType
)
abstract MarkRootElements :
elementGroup:ElementGroup *
elements:ICollection<ModelElement> *
closureType:ClosureType -> unit
override MarkRootElements :
elementGroup:ElementGroup *
elements:ICollection<ModelElement> *
closureType:ClosureType -> unit
protected function MarkRootElements(
elementGroup : ElementGroup,
elements : ICollection<ModelElement>,
closureType : ClosureType
)
Parameters
- elementGroup
Type: Microsoft.VisualStudio.Modeling.ElementGroup
elementGroup
- elements
Type: System.Collections.Generic.ICollection<ModelElement>
elements
- closureType
Type: Microsoft.VisualStudio.Modeling.ClosureType
closureType
Remarks
This default implementation does not take the elements and closureType parameters into account. All groupElements in the elementGroup object, that are not the target of any group-contained, embedding relationship are marked as root. Called by the ElementOperations implementation of the virtual AddElementGroupFormat method. This method is invoked using parameter values that were passed to the AddElementGroupFormat method. The elementGroup parameter comes from the return value of the virtual CreateElementGroup method.
.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.