Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

Any ideas how to do this?

share|improve this question

migrated from stackoverflow.com Oct 8 '12 at 16:02

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 1 down vote accepted

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

share|improve this answer
    
Thanks for tips. But i dont get it how actually to enable just custom scopes like sharepoint do this with this check box... –  Evgeny Oct 9 '12 at 7:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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