Partager via


IVsToolbox2.GetData Method (IDataObject%)

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 IVsToolbox2
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.

Implements

IVsToolbox.GetData(IDataObject%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolbox2::GetData(
   [out, retval]IDataObject** ppDO
);

IVsToolbox2.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

IVsToolbox2 Interface

IVsToolbox2 Members

GetData Overload

Microsoft.VisualStudio.Shell.Interop Namespace