IVsToolboxActiveUserHook.ToolboxSelectionChanged Method
This method is called by the Toolbox whenever there is a change in which Toolbox item has been selected.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Déclaration
Function ToolboxSelectionChanged ( _
pSelected As IDataObject _
) As Integer
'Utilisation
Dim instance As IVsToolboxActiveUserHook
Dim pSelected As IDataObject
Dim returnValue As Integer
returnValue = instance.ToolboxSelectionChanged(pSelected)
int ToolboxSelectionChanged(
IDataObject pSelected
)
int ToolboxSelectionChanged(
[InAttribute] IDataObject^ pSelected
)
function ToolboxSelectionChanged(
pSelected : IDataObject
) : int
Parameters
pSelected
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject[in] An IDataObject containing the currently selected Toolbox item.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell80.idl:
[C++]
HRESULT IVsToolboxActiveUserHook::ToolboxSelectionChanged(
[in] IDataObject *pSelected
);
IVsToolboxActiveUserHook is used by an application that requires notification of changes to a Toolbox selection. It should only be called by the Toolbox itself, as only the active Toolbox user can receive IVsToolboxActiveUserHook notifications. It should not be called directly by a VSPackage.
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.
See Also
Reference
IVsToolboxActiveUserHook Interface