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

‘선언
Function OnInvalidateItems ( _
    itemidParent As UInteger _
) As Integer
‘사용 방법
Dim instance As IVsHierarchyEvents
Dim itemidParent As UInteger
Dim returnValue As Integer

returnValue = instance.OnInvalidateItems(itemidParent)
int OnInvalidateItems(
    uint itemidParent
)
int OnInvalidateItems(
    [InAttribute] unsigned int itemidParent
)
abstract OnInvalidateItems : 
        itemidParent:uint32 -> int 
function OnInvalidateItems(
    itemidParent : uint
) : int

Parameters

  • itemidParent
    Type: System.UInt32
    [in] Parent item identifier, or root, of the hierarchy whose item inventory has changed.

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 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

IVsHierarchyEvents Members

Microsoft.VisualStudio.Shell.Interop Namespace