共用方式為


IVsUIHierarchyWindow2.SetItemAttribute Method

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

Syntax

'宣告
Function SetItemAttribute ( _
    pUIH As IVsUIHierarchy, _
    itemid As UInteger, _
    attribute As UInteger, _
    value As Object _
) As Integer
'用途
Dim instance As IVsUIHierarchyWindow2
Dim pUIH As IVsUIHierarchy
Dim itemid As UInteger
Dim attribute As UInteger
Dim value As Object
Dim returnValue As Integer

returnValue = instance.SetItemAttribute(pUIH, _
    itemid, attribute, value)
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

Return Value

Type: System.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

See Also

Reference

IVsUIHierarchyWindow2 Interface

IVsUIHierarchyWindow2 Members

Microsoft.VisualStudio.Shell.Interop Namespace