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 缺少executequeryasync方法_Sharepoint_Csom - Fatal编程技术网

Sharepoint 缺少executequeryasync方法

Sharepoint 缺少executequeryasync方法,sharepoint,csom,Sharepoint,Csom,我现在有一个相当大的程序,使用[Sharepoint]2013 fondation和CSOM。我成功地使用了clientcontext.executequery。 我希望使用executequeryasync,但我的“clientcontext”既不在intellisense中提供该方法,也不在编译时直接键入该方法时被接受。只有executequery存在。 如果我在clientcontext上使用“f12”,则属于SP clientcontext类,该类具有executequery但没有exe

我现在有一个相当大的程序,使用[Sharepoint]2013 fondation和CSOM。我成功地使用了clientcontext.executequery。 我希望使用executequeryasync,但我的“clientcontext”既不在intellisense中提供该方法,也不在编译时直接键入该方法时被接受。只有executequery存在。 如果我在clientcontext上使用“f12”,则属于SP clientcontext类,该类具有executequery但没有executequeryasync。 .Net 4.5和4.5.1,结果相同 我错过了什么?
非常感谢

是否确保在代码运行之前加载SharePoint脚本文件“sp.js”


SP.SOD.executeFunc('SP.js','SP.ClientContext',yourFunction)

异步版本仅在Silverlight中可用。参见相应章节中提到的组件。

我说的是c#,而不是js。很抱歉