IVsUIHierarchyWindow2.SetItemAttribute Method (IVsUIHierarchy, UInt32, UInt32, Object)

 

Sets an item attribute in the specified hierarchy.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

int SetItemAttribute(
	IVsUIHierarchy pUIH,
	uint itemid,
	uint attribute,
	object value
)

Parameters

pUIH
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy

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

itemid
Type: System.UInt32

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

attribute
Type: System.UInt32

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

value
Type: System.Object

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

Return Value

Type: System.Int32

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

From vsshell80.idl:

HRESULT IVsUIHierarchyWindow2::SetItemAttribute(
   [in] IVsUIHierarchy* pUIH, 
   [in] VSITEMID itemid, 
   [in] VSHIERITEMATTRIBUTE attribute, 
   [in] VARIANT value
);
Return to top
Show: