Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 26th, 2013  |  syntax: None  |  size: 0.49 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public MainPage()
  2.         {
  3.             InitializeComponent();
  4.  
  5.             Task.Factory.StartNew(() =>
  6.             {
  7.                 var context = new Microsoft.SharePoint.Client.ClientContext("http://test_sp/");                                
  8.  
  9.                 context.Load(context.Web);
  10.                 context.ExecuteQuery();
  11.                 Dispatcher.BeginInvoke(() =>
  12.                 {
  13.                     MessageBox.Show(context.Web.Title);
  14.                 });
  15.             });
  16.         }