次の方法で共有


IVsMenuItem.IMISetProp(Int32, Object) Method

Definition

Sets a standard menu item property.

public:
 int IMISetProp(int propid, System::Object ^ var);
public:
 int IMISetProp(int propid, Platform::Object ^ var);
int IMISetProp(int propid, winrt::Windows::Foundation::IInspectable const & var);
public int IMISetProp (int propid, object var);
abstract member IMISetProp : int * obj -> int
Public Function IMISetProp (propid As Integer, var As Object) As Integer

Parameters

propid
Int32

[in] The property. A value from the __VSMEPROPID Enumeration.

var
Object

[in] 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

COM Signature

From vsshell.idl:

HRESULT IVsMenuItem::IMISetProp(  
   [in]VSMEPROPID PropId,   
   [in]VARIANT var  
);  

Applies to