I want to enable custom scopes in sharepoint in code. enter image description here

Any ideas how to do this?

1 Answer 1


This site shows you how to do it: http://www.sharepointconfig.com/2011/04/creating-sharepoint-2010-search-scopes-programmatically/

You'll want to look into the QueryManager class: http://msdn.microsoft.com/en-us/library/ee588559.aspx

This may help too: http://msdn.microsoft.com/en-us/library/ee557874.aspx

  • Thanks for tips. But i dont get it how actually to enable just custom scopes like sharepoint do this with this check box...
    – Ievgen
    Oct 9, 2012 at 7:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.