Condividi tramite


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)

Syntax

'Dichiarazione
Function OnElementValueChanged ( _
    elementid As UInteger, _
    varValueOld As Object, _
    varValueNew As Object _
) As Integer
'Utilizzo
Dim instance As IVsSelectionEvents
Dim elementid As UInteger
Dim varValueOld As Object
Dim varValueNew As Object
Dim returnValue As Integer

returnValue = instance.OnElementValueChanged(elementid, _
    varValueOld, varValueNew)
int OnElementValueChanged(
    uint elementid,
    Object varValueOld,
    Object varValueNew
)
int OnElementValueChanged(
    [InAttribute] unsigned int elementid, 
    [InAttribute] Object^ varValueOld, 
    [InAttribute] Object^ varValueNew
)
abstract OnElementValueChanged : 
        elementid:uint32 * 
        varValueOld:Object * 
        varValueNew:Object -> int 
function OnElementValueChanged(
    elementid : uint, 
    varValueOld : Object, 
    varValueNew : Object
) : int

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.

Remarks

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsSelectionEvents Interface

IVsSelectionEvents Members

Microsoft.VisualStudio.Shell.Interop Namespace