how i can set the “Allow this site to appear in search results?” for a site to be equal to No inside my event receiver
-
01-01-2021 - |
Решение
You need to set the NoCrawl
property of SPWeb to true.
The code would be as below:
web.NoCrawl=true;
web.Update();
Reference - SPWeb.NoCrawl
Не связан с sharepoint.stackexchange