Partager via


IVsToolbox.GetData Method

Returns the data object for the selected item in the Toolbox.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Déclaration
Function GetData ( _
    <OutAttribute> ByRef ppDO As IDataObject _
) As Integer
'Utilisation
Dim instance As IVsToolbox
Dim ppDO As IDataObject
Dim returnValue As Integer

returnValue = instance.GetData(ppDO)
int GetData(
    out IDataObject ppDO
)
int GetData(
    [OutAttribute] IDataObject^% ppDO
)
abstract GetData : 
        ppDO:IDataObject byref -> int 
function GetData(
    ppDO : IDataObject
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolbox::GetData(

   [out, retval]IDataObject** ppDO

);

IVsToolbox.GetData returns nulla null reference (Nothing in Visual Basic) if the common pointer tool is the selected item or if the current item is not an enabled item.

.NET Framework Security

See Also

Reference

IVsToolbox Interface

IVsToolbox Members

Microsoft.VisualStudio.Shell.Interop Namespace