Udostępnij za pośrednictwem


IVsUIHierarchyWindow2.SetItemAttribute Method

Definition

Sets an item attribute in the specified hierarchy.

public:
 int SetItemAttribute(Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy ^ pUIH, System::UInt32 itemid, System::UInt32 attribute, System::Object ^ value);
public:
 int SetItemAttribute(Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy ^ pUIH, unsigned int itemid, unsigned int attribute, Platform::Object ^ value);
int SetItemAttribute(Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy const & pUIH, unsigned int itemid, unsigned int attribute, winrt::Windows::Foundation::IInspectable const & value);
public int SetItemAttribute (Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy pUIH, uint itemid, uint attribute, object value);
abstract member SetItemAttribute : Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy * uint32 * uint32 * obj -> int
Public Function SetItemAttribute (pUIH As IVsUIHierarchy, itemid As UInteger, attribute As UInteger, value As Object) As Integer

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:

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

Applies to