Я получил исключение. Microsoft.sharepoint.client.fieldorproperty не инициализирован при создании переменной контекста клиента при извлечении данных из списка sharepoint в проекте c # .net, он выдает версию библиотеки сервера, версию сервера, ошибку serverchema версию const string siteurl = "https://indica.sharepoint.com/sites/DemoBot/Lists"; string login = "tghi@indica.onmicrosoft.com"; строка password = "
try
{
foreach (var c in password)
{
securepassword.AppendChar(c);
}
var credential = new sp.SharePointOnlineCredentials(login, securepassword);
sp.ClientContext clientcontext = new sp.ClientContext(siteurl);
clientcontext.Credentials = credential;
sp.List olist = clientcontext.Web.Lists.GetByTitle(listname);
sp.CamlQuery calmquery = new sp.CamlQuery();
var username = "Test1";
calmquery.ViewXml = $"<View><Query><Where>" + $"<Eq><FieldRef Name='Title'/>< Value Type
= 'Text' >{username}</ Value > </ Eq > " + $"</Where></Query><RowLimit>1</RowLimit>
</View>";
sp.ListItemCollection collistItem = olist.GetItems(calmquery);
clientcontext.Load(collistItem);
clientcontext.ExecuteQuery();
}