Sharepoint - How do I set a list to not be valid for search through the object model?
SPList list = ...
list.NoCrawl = true;
list.Update();
See MSDN's SPList.NoCrawl property
SPList list = ...
list.NoCrawl = true;
list.Update();
See MSDN's SPList.NoCrawl property