Query Search SharePoint 2013 Client Object Model

Query Search SharePoint 2013 Client Object Model

Howdy Reader,

Getting a list of search results from SharePoint 2013 sounds like a pretty trivial task of which you would say the client-side object model is capable of handling.

To get started, we first need to add reference to the assemblies listed below. These can be added using Nuget Package Manager in Visual Studio. If you are new to using NuGet package, refer this post – Adding references using NuGet packages.

  • Microsoft.SharePoint.Client.dll
  • Microsoft.SharePoint.Client.Runtime.dll
  • Microsoft.SharePoint.Client.Search.dll

Next, we need to add these references in our application with below using statements.

Once you are done with the above steps, go to program.cs and write the below code in Main() method.

Microsoft Corporation

Code:

Screenshot:

Query Search SharePoint 2013 Client Object Model

Note: URL details are hidden due to security & privacy concerns.

Download source code for Free

This is it friends. Hope you enjoyed reading and this article was of some help to you.

What do you think?

Dear Reader,
If you have any questions or suggestions, please feel free to email us or put your thoughts as comments below. We would love to hear from you. If you found this post or article useful then please share along with your friends and help them to learn.

Happy Learning!