Partager via


IVsWindowFrame.SetProperty(Int32, Object) Method

Definition

Sets a window frame 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] Identifier of the property whose values are taken from the __VSFPROPID enumeration.

var
Object

[in] The value depends on the property set (see __VSFPROPID ).

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsWindowFrame::SetProperty(  
   [in] VSFPROPID propid,  
   [in] VARIANT var  
);  

See __VSFPROPID for a complete list of properties, property IDs, types, and comments.

Applies to