ElementOperations.GetElementGroupPrototype Method
Gets the ElementGroupPrototype from the DataObject if it exists.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
Public Shared Function GetElementGroupPrototype ( _
serviceProvider As IServiceProvider, _
data As IDataObject _
) As ElementGroupPrototype
'Usage
Dim serviceProvider As IServiceProvider
Dim data As IDataObject
Dim returnValue As ElementGroupPrototype
returnValue = ElementOperations.GetElementGroupPrototype(serviceProvider, _
data)
public static ElementGroupPrototype GetElementGroupPrototype(
IServiceProvider serviceProvider,
IDataObject data
)
public:
static ElementGroupPrototype^ GetElementGroupPrototype(
IServiceProvider^ serviceProvider,
IDataObject^ data
)
public static function GetElementGroupPrototype(
serviceProvider : IServiceProvider,
data : IDataObject
) : ElementGroupPrototype
Parameters
serviceProvider
Type: System.IServiceProviderThe service provider to use for retrieving the IToolboxService.
data
Type: System.Windows.Forms.IDataObjectThe 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
- 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.