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
'Dichiarazione
Function OnInvalidateItems ( _
itemidParent As UInteger _
) As Integer
'Utilizzo
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
)
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.
Permissions
- 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.