Condividi tramite


ElementOperations.AddElementGroupFormat Method (IDataObject, ICollection<ModelElement>, ClosureType, Boolean)

Adds the ElementGroupPrototype format to the specified IDataObject using the specified collection of ModelElements. Can be called from derived classes to force demand load of element links in order to create the collection of model elements.

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

Syntax

'Declaration
Protected Sub AddElementGroupFormat ( _
    data As IDataObject, _
    elements As ICollection(Of ModelElement), _
    closureType As ClosureType, _
    bypassDemandLoading As Boolean _
)
protected void AddElementGroupFormat(
    IDataObject data,
    ICollection<ModelElement> elements,
    ClosureType closureType,
    bool bypassDemandLoading
)
protected:
void AddElementGroupFormat(
    IDataObject^ data, 
    ICollection<ModelElement^>^ elements, 
    ClosureType closureType, 
    bool bypassDemandLoading
)
member AddElementGroupFormat : 
        data:IDataObject * 
        elements:ICollection<ModelElement> * 
        closureType:ClosureType * 
        bypassDemandLoading:bool -> unit
protected function AddElementGroupFormat(
    data : IDataObject, 
    elements : ICollection<ModelElement>, 
    closureType : ClosureType, 
    bypassDemandLoading : boolean
)

Parameters

  • bypassDemandLoading
    Type: System.Boolean

    Whether or not element links should be demand loaded in order to create the collection of model elements.

Remarks

The data format name is assumed to be typeof(ElementGroupPrototype).FullName.

.NET Framework Security

See Also

Reference

ElementOperations Class

AddElementGroupFormat Overload

Microsoft.VisualStudio.Modeling Namespace