Sends notification that an item in the toolbox has been selected (by clicking the mouse or by pressing ENTER).
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Overridable Function ItemPicked ( _
data As IDataObject _
) As Integer
'使用
Dim instance As SimpleEditorView
Dim data As IDataObject
Dim returnValue As Integer
returnValue = instance.ItemPicked(data)
public virtual int ItemPicked(
IDataObject data
)
public:
virtual int ItemPicked(
IDataObject^ data
)
public function ItemPicked(
data : IDataObject
) : int
Parameters
data
Type: Microsoft.VisualStudio.OLE.Interop.IDataObjectThe IDataObject that has been selected.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsToolboxUser.ItemPicked(IDataObject)
Permissions
- 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.