Responsive Ads Here

Tuesday, July 17, 2012

Allow items to appear in Search results - splist - programmatically

//Get the list which was created
SPList spList = spWeb.Lists[listName];
spList.NoCrawl = true; // Not allow items to appear in search results
spList.NoCrawl = false; // Allow items to appear in search results

No comments:

Post a Comment