IVsMenuItem.IMIGetProp(Int32, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a standard menu item property.
public:
int IMIGetProp(int propid, [Runtime::InteropServices::Out] System::Object ^ % pvar);
int IMIGetProp(int propid, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & pvar);
public int IMIGetProp (int propid, out object pvar);
abstract member IMIGetProp : int * obj -> int
Public Function IMIGetProp (propid As Integer, ByRef pvar As Object) As Integer
Parameters
- propid
- Int32
[in] The property. A value from the __VSMEPROPID Enumeration.
- pvar
- Object
[out] Pointer to a VARIANT containing the property value.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
C++
From vsshell.idl:
HRESULT IVsMenuItem::IMIGetProp(
[in]VSMEPROPID PropId,
[out]VARIANT *pvar
);