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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.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>- A collection of root elements. 
- type 
 Type: Microsoft.VisualStudio.Modeling.ClosureType- The type of closure to build. 
- 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 DistinguishedElements list will be populated with the root elements list
.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.