Freigeben über


IVsSolution.SetProperty(Int32, Object) Method

Definition

Generically sets properties of the solution.

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 solution property. For a list of propid values, see __VSPROPID.

var
Object

[out] Pointer to VARIANT that contains the property settings.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolution::SetProperty(  
   [in] VSPROPID propid,  
   [in] VARIANT var  
);  

Applies to