Code Samples, Office 365, SharePoint
October 26, 2012
Ionut Nechita
The following SharePoint 2013 code will connect to Office 365 and load the Web properties using CSOM: ClientContext spctxt = new ClientContext(url); SharePointOnlineCredentials cred = new SharePointOnlineCredentials(username, SecureStringFromString(password)); spctxt.Credentials = cred; spctxt.Load(spctxt.Web); spctxt.ExecuteQuery(); For both 2013 and 2010 versions,...
Continue Reading