更新SHarePoint元数据
我是sharepoint的新手,因此我的问题是,如果有人能帮助我,请尝试更新我正常上载的文件的元数据,但在添加元数据时,我收到一个错误SytemBagImageFormatException以下是代码: 这将正常上载文件更新SHarePoint元数据,sharepoint,Sharepoint,我是sharepoint的新手,因此我的问题是,如果有人能帮助我,请尝试更新我正常上载的文件的元数据,但在添加元数据时,我收到一个错误SytemBagImageFormatException以下是代码: 这将正常上载文件 using(PageData pageData = pdfProvider.GetDocument(rendition) { using(Stream stream = pageData.Stream) { Microsof
using(PageData pageData = pdfProvider.GetDocument(rendition)
{
using(Stream stream = pageData.Stream)
{ Microsoft.SharePoint.Client.File.SaveBinaryDirect(context, destinoArchivo, stream, true);
}
}
但当我这样做时,我得到了一个错误:
Microsoft.SharePoint.Client.File newFile = context.Web.GetFileByServerRelativeUrl(destinoArchivo);
context.Load(newFile);
context.ExecuteQuery();
newFile.CheckOut();
ListItem listItem = newFile.ListItemAllFields;
listItem["Clase de Documento"] = "Prueba";
listItem.Update();
newFile.CheckIn(string.Empty, CheckinType.OverwriteCheckIn);
谁能告诉我它有什么问题吗?我好像能看到