Delen via


IVsHierarchyEvents.OnInvalidateItems Method

Notifies clients when changes are made to the item inventory of a hierarchy.

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

Syntax

'Declaration
Function OnInvalidateItems ( _
    itemidParent As UInteger _
) As Integer
int OnInvalidateItems(
    uint itemidParent
)
int OnInvalidateItems(
    [InAttribute] unsigned int itemidParent
)
abstract OnInvalidateItems : 
        itemidParent:uint32 -> int
function OnInvalidateItems(
    itemidParent : uint
) : int

Parameters

  • itemidParent
    Type: UInt32

    [in] Parent item identifier, or root, of the hierarchy whose item inventory has changed.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsHierarchyEvents::OnInvalidateItems(
   [in] VSITEMID itemidParent
);

This method is called to tell any listeners to throw out any cached information about a hierarchy and any children of that hierarchy.

.NET Framework Security

See Also

Reference

IVsHierarchyEvents Interface

Microsoft.VisualStudio.Shell.Interop Namespace