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
ppDO
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject%[out, retval] Toolbox item for which data needs to be returned.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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
- 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.