다음을 통해 공유


IVsMonitorSelection.GetCurrentElementValue(UInt32, Object) Method

Definition

Returns the value for a particular element.

public:
 int GetCurrentElementValue(System::UInt32 elementid, [Runtime::InteropServices::Out] System::Object ^ % pvarValue);
int GetCurrentElementValue(unsigned int elementid, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & pvarValue);
public int GetCurrentElementValue (uint elementid, out object pvarValue);
abstract member GetCurrentElementValue : uint32 * obj -> int
Public Function GetCurrentElementValue (elementid As UInteger, ByRef pvarValue As Object) As Integer

Parameters

elementid
UInt32

[in] Identifier of the current element. For valid elementid values, see VSConstants.VSSELELEMID.

pvarValue
Object

[out] Pointer to data associated with the element identified by elementid.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

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.

Applies to