Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
更新SHarePoint元数据_Sharepoint - Fatal编程技术网

更新SHarePoint元数据

更新SHarePoint元数据,sharepoint,Sharepoint,我是sharepoint的新手,因此我的问题是,如果有人能帮助我,请尝试更新我正常上载的文件的元数据,但在添加元数据时,我收到一个错误SytemBagImageFormatException以下是代码: 这将正常上载文件 using(PageData pageData = pdfProvider.GetDocument(rendition) { using(Stream stream = pageData.Stream) { Microsof

我是sharepoint的新手,因此我的问题是,如果有人能帮助我,请尝试更新我正常上载的文件的元数据,但在添加元数据时,我收到一个错误SytemBagImageFormatException以下是代码: 这将正常上载文件

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);
谁能告诉我它有什么问题吗?我好像能看到