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)
Syntax
'Declaration
Function SetItemAttribute ( _
    pUIH As IVsUIHierarchy, _
    itemid As UInteger, _
    attribute As UInteger, _
    value As Object _
) As Integer
int SetItemAttribute(
    IVsUIHierarchy pUIH,
    uint itemid,
    uint attribute,
    Object value
)
int SetItemAttribute(
    [InAttribute] IVsUIHierarchy^ pUIH, 
    [InAttribute] unsigned int itemid, 
    [InAttribute] unsigned int attribute, 
    [InAttribute] Object^ value
)
abstract SetItemAttribute : 
        pUIH:IVsUIHierarchy * 
        itemid:uint32 * 
        attribute:uint32 * 
        value:Object -> int
function SetItemAttribute(
    pUIH : IVsUIHierarchy, 
    itemid : uint, 
    attribute : uint, 
    value : Object
) : int
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: UInt32- [in] The item identifier of the item whose attribute is to be set. 
- attribute 
 Type: UInt32- [in] __VSHIERITEMATTRIBUTE enumeration containing the attribute to be set. 
- value 
 Type: Object- [in] The value of the attribute to be set. 
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell80.idl:
HRESULT IVsUIHierarchyWindow2::SetItemAttribute(
   [in] IVsUIHierarchy* pUIH, 
   [in] VSITEMID itemid, 
   [in] VSHIERITEMATTRIBUTE attribute, 
   [in] VARIANT value
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.