IVsSelectionEvents::OnElementValueChanged Method (UInt32, Object^, Object^)
Reports that an element value has changed.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int OnElementValueChanged( unsigned int elementid, Object^ varValueOld, Object^ varValueNew )
Parameters
- elementid
-
Type:
System::UInt32
[in] DWORD value representing a particular entry in the array of element values associated with the selection context. For valid elementid values, see VSConstants::VSSELELEMID.
- varValueOld
-
Type:
System::Object^
[in] VARIANT that contains the previous element value. This parameter contains element-specific data, such as a pointer to the IOleCommandTarget interface if elementid is set to SEID_ResultsList or a pointer to the IOleUndoManager interface if elementid is set to SEID_UndoManager.
- varValueNew
-
Type:
System::Object^
[in] VARIANT that contains the new element value. This parameter contains element-specific data, such as a pointer to the IOleCommandTarget interface if elementid is set to SEID_ResultsList or a pointer to the IOleUndoManager interface if elementid is set to SEID_UndoManager.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsSelectionEvents::OnElementValueChanged( [in] VSSELELEMID elementid, [in] VARIANT varValueOld, [in] VARIANT varValueNew );