次の方法で共有


IVsWindowView.SetProperty(Int32, Object) Method

Definition

Set the value of a property.

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

Parameters

propid
Int32

[in] Integer. The property to set. A value from the __VSVPROPID enumeration.

var
Object

[in] A VARIANT containing the value to assign to the property.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsWindowView::SetProperty(  
   [in] VSVPROPID propid,   
   [in] VARIANT var  
);  

Applies to