Store.GetClosurePrototypeGroup Method (ICollection<ModelElement>, ClosureType, Boolean)

Creates an element group prototype in the default partition of the specified closure type when given a list of root elements and allows bypassing of demand loading.

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

Syntax

'Declaration
Public Function GetClosurePrototypeGroup ( _
    rootElements As ICollection(Of ModelElement), _
    type As ClosureType, _
    bypassDemandLoading As Boolean _
) As ElementGroupPrototype
'Usage
Dim instance As Store 
Dim rootElements As ICollection(Of ModelElement)
Dim type As ClosureType 
Dim bypassDemandLoading As Boolean 
Dim returnValue As ElementGroupPrototype 

returnValue = instance.GetClosurePrototypeGroup(rootElements, _
    type, bypassDemandLoading)
public ElementGroupPrototype GetClosurePrototypeGroup(
    ICollection<ModelElement> rootElements,
    ClosureType type,
    bool bypassDemandLoading
)
public:
ElementGroupPrototype^ GetClosurePrototypeGroup(
    ICollection<ModelElement^>^ rootElements, 
    ClosureType type, 
    bool bypassDemandLoading
)
public function GetClosurePrototypeGroup(
    rootElements : ICollection<ModelElement>, 
    type : ClosureType, 
    bypassDemandLoading : boolean
) : ElementGroupPrototype

Parameters

  • bypassDemandLoading
    Type: System.Boolean

    true to bypass demand loading while forming the closure; otherwise, false.

Return Value

Type: Microsoft.VisualStudio.Modeling.ElementGroupPrototype
The element group prototype collection that forms the closure for copy.

Remarks

The element group prototype's distinguished elements list will be populated with the root elements list.

.NET Framework Security

See Also

Reference

Store Class

Store Members

GetClosurePrototypeGroup Overload

Microsoft.VisualStudio.Modeling Namespace