This documentation is archived and is not being maintained.

IVsSelectionEvents.OnElementValueChanged Method

Reports that an element value has changed.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int OnElementValueChanged(
	uint 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.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsSelectionEvents::OnElementValueChanged(
   [in] VSSELELEMID elementid,
   [in] VARIANT varValueOld,
   [in] VARIANT varValueNew
);

Show: