IVsUIHierarchyWindow2.SetItemAttribute Method

Definition

Sets an item attribute in the specified hierarchy.

C++/CX
public:
 int SetItemAttribute(Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy ^ pUIH, unsigned int itemid, unsigned int attribute, Platform::Object ^ value);

Parameters

pUIH
IVsUIHierarchy

[in] IVsUIHierarchy interface representing the UI hierarchy node to which the item attribute is to be set.

itemid
UInt32

[in] The item identifier of the item whose attribute is to be set.

attribute
UInt32

[in] __VSHIERITEMATTRIBUTE enumeration containing the attribute to be set.

value
Object

[in] The value of the attribute to be set.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

cpp#
HRESULT IVsUIHierarchyWindow2::SetItemAttribute(  
   [in] IVsUIHierarchy* pUIH,   
   [in] VSITEMID itemid,   
   [in] VSHIERITEMATTRIBUTE attribute,   
   [in] VARIANT value  
);  

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022