Condividi tramite


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

Creates an element group prototype in the default partition of the given closure type if a list of root elements is specified.

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 _
) As ElementGroupPrototype
public ElementGroupPrototype GetClosurePrototypeGroup(
    ICollection<ModelElement> rootElements,
    ClosureType type
)
public:
ElementGroupPrototype^ GetClosurePrototypeGroup(
    ICollection<ModelElement^>^ rootElements, 
    ClosureType type
)
member GetClosurePrototypeGroup : 
        rootElements:ICollection<ModelElement> * 
        type:ClosureType -> ElementGroupPrototype
public function GetClosurePrototypeGroup(
    rootElements : ICollection<ModelElement>, 
    type : ClosureType
) : ElementGroupPrototype

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.ElementGroupPrototype
The element group prototype collection.

Remarks

the element group prototype's DistinguishedElements list will be populated with the root elements list

.NET Framework Security

See Also

Reference

Store Class

GetClosurePrototypeGroup Overload

Microsoft.VisualStudio.Modeling Namespace