# ArcObjects 10/10.1 Get rid of Invalid layer symbol in TOC

I've written an add-in (VS2010, C#) that finds specific invalid feature layers in ArcMap and fixes them. After the layer is fixed, the red invalid symbol still appears in the TOC. An activeview.refresh doesn't take care of it. How does one programatically get that layer entry to appear as valid without manual intervention?

-
What about ESRI.ArcGIS.ArcMapUI.IContentsView::Refresh(null)? –  mkennedy Apr 30 '13 at 18:49
Yes, that's it. –  Rob Apr 30 '13 at 19:42

IMxDocument pDoc = (IMxDocument)pApp.Document;