Share via


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

'Declaration
Function GetData ( _
    <OutAttribute> ByRef ppDO As IDataObject _
) As Integer
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

Microsoft.VisualStudio.Shell.Interop Namespace