How to get all available search contexts for the current site collection?

By Namwar Rizvi - Last updated: Monday, January 26, 2009 - Save & Share - Leave a Comment

If you want to retrieve all available search contexts for the web site collection where your application is initiated then you can use the following code to get it

SearchContext searchContext = SearchContext.GetContext(ServerContext.Current);
Share
Posted in Uncategorized • • Top Of Page

Write a comment