IVsMonitorSelection::GetCurrentElementValue Method (UInt32, Object^)
Visual Studio 2015
Returns the value for a particular element.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- elementid
-
Type:
System::UInt32
[in] Identifier of the current element. For valid elementid values, see VSConstants::VSSELELEMID.
- pvarValue
-
Type:
System::Object^
[out] Pointer to data associated with the element identified by elementid.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsMonitorSelection::GetCurrentElementValue(
[in] VSSELELEMID elementid,
[out] VARIANT *pvarValue
);
Element values are entries in an array attached to the selection context of each window. Each position in the array is represented by a VSConstants::VSSELELEMID identifier. The value is specific to the element, typically a pointer to an interface. The environment sets some of the element values only; others are set by VSPackages.
Show: