ElementOperations.GetElementGroupPrototype Method

Gets the ElementGroupPrototype from the DataObject if it exists.

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

Syntax

'Declaration
Public Shared Function GetElementGroupPrototype ( _
    serviceProvider As IServiceProvider, _
    data As IDataObject _
) As ElementGroupPrototype
public static ElementGroupPrototype GetElementGroupPrototype(
    IServiceProvider serviceProvider,
    IDataObject data
)
public:
static ElementGroupPrototype^ GetElementGroupPrototype(
    IServiceProvider^ serviceProvider, 
    IDataObject^ data
)
static member GetElementGroupPrototype : 
        serviceProvider:IServiceProvider * 
        data:IDataObject -> ElementGroupPrototype
public static function GetElementGroupPrototype(
    serviceProvider : IServiceProvider, 
    data : IDataObject
) : ElementGroupPrototype

Parameters

  • serviceProvider
    Type: IServiceProvider

    The service provider to use for retrieving the IToolboxService.

  • data
    Type: IDataObject

    The IDataObject to retrieve the ElementGroupPrototype from.

Return Value

Type: Microsoft.VisualStudio.Modeling.ElementGroupPrototype
The ElementGroupPrototype from the DataObject.

Remarks

The data format name is assumed to be ElementGroupPrototype.DefaultDataFormatName.

.NET Framework Security

See Also

Reference

ElementOperations Class

Microsoft.VisualStudio.Modeling Namespace