次の方法で共有


IVsUserContextItemProvider.SetProperty(Int32, Object) Method

Definition

Sets the specified property.

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

Parameters

property
Int32
var
Object

Returns

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

Remarks

COM Signature

From context.idl:

HRESULT IVsUserContextItemProvider::SetProperty(  
   [in] VSCIPPROPID property,   
   in] VARIANT var  
);  

Applies to