Notifies clients when changes are made to icons.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣言
Function OnInvalidateIcon ( _
hicon As IntPtr _
) As Integer
'使用
Dim instance As IVsHierarchyEvents
Dim hicon As IntPtr
Dim returnValue As Integer
returnValue = instance.OnInvalidateIcon(hicon)
int OnInvalidateIcon(
IntPtr hicon
)
int OnInvalidateIcon(
[InAttribute] IntPtr hicon
)
function OnInvalidateIcon(
hicon : IntPtr
) : int
Parameters
hicon
Type: System.IntPtr[in] Icon handle.
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::OnInvalidateIcon(
[in] HICON hicon
);
This method runs only on the local computer. You cannot invoke it remotely.
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.