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
- ppDO
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject%
[out, retval] Toolbox item for which data needs to be returned.
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
- 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.