"item [“属性"]"引发了类型为"Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException" -sharepoint的异常 [英] 'item["Properties"]' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'-sharepoint
问题描述
v
var file = context.Web.GetFileByServerRelativeUrl(url);
var item = file.ListItemAllFields;
context.Load(item);
context.ExecuteQuery();
item [属性"] = uString;
item.Update();
context.ExecuteQuery();
var file = context.Web.GetFileByServerRelativeUrl(url);
var item = file.ListItemAllFields;
context.Load(item);
context.ExecuteQuery();
item["Properties"] = uString;
item.Update();
context.ExecuteQuery();
推荐答案
msdnpublic1234,
Hi msdnpublic1234,
根据您的问题与SharePoint更相关,我将线程移至 SharePoint论坛以获得适当的支持.
According to your question is more related to SharePoint, I will move the thread to SharePoint Forum for suitable support.
如果在使用C#时遇到语法或代码错误,请随时与我们联系.我们将尽力为您提供解决方案.
If you have some grammar or code errors in using C#, please feel free to contact us. We will try our best to give you a solution .
最好的问候,
Neil Hu
这篇关于"item [“属性"]"引发了类型为"Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException" -sharepoint的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!