다음을 통해 공유


IVsHierarchy.SetProperty(UInt32, Int32, Object) Method

Definition

Sets properties of a specific node or of the hierarchy.

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

Parameters

itemid
UInt32

[in] Item identifier of the hierarchy item whose properties are to be set. For a list of itemid values, see VSITEMID.

propid
Int32

[in] Identifier of the hierarchy property. For a list of propid values, see __VSHPROPID.

var
Object

[in] Variant that contains property information.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsHierarchy::SetProperty(  
   [in] VSITEMID itemid,  
   [in] VSHPROPID propid,  
   [in] VARIANT var  
);  

Applies to