Partition.GetClosurePrototypeGroup Method (ICollection<ModelElement>, ClosureType, Boolean)
Creates an ElementGroupPrototype of the given closure type based on the given list of root Elements
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaration
Public Function GetClosurePrototypeGroup ( _
rootElements As ICollection(Of ModelElement), _
type As ClosureType, _
bypassDemandLoading As Boolean _
) As ElementGroupPrototype
public ElementGroupPrototype GetClosurePrototypeGroup(
ICollection<ModelElement> rootElements,
ClosureType type,
bool bypassDemandLoading
)
public:
ElementGroupPrototype^ GetClosurePrototypeGroup(
ICollection<ModelElement^>^ rootElements,
ClosureType type,
bool bypassDemandLoading
)
member GetClosurePrototypeGroup :
rootElements:ICollection<ModelElement> *
type:ClosureType *
bypassDemandLoading:bool -> ElementGroupPrototype
public function GetClosurePrototypeGroup(
rootElements : ICollection<ModelElement>,
type : ClosureType,
bypassDemandLoading : boolean
) : ElementGroupPrototype
Parameters
- rootElements
Type: System.Collections.Generic.ICollection<ModelElement>
collection of root elements to begin the closure walk from
- type
Type: Microsoft.VisualStudio.Modeling.ClosureType
type of closure to build
- bypassDemandLoading
Type: System.Boolean
indicates whether to bypass demand loading while forming the closure
Return Value
Type: Microsoft.VisualStudio.Modeling.ElementGroupPrototype
an ElementGroupPrototype for the element collection selected in the closure walk
Remarks
All group elements that are not the target of any group-contained, embedding relationship, are marked as root elements in the ElementGroupPrototype.
.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.