c# - Cant format the json body for moving a file in Graph Api
问题描述
I have a file that i want to move to a different folder in one drive and am trying to format the body as follows:
var body = new
{
parentReference =
{
id= folderId;
},
name = fileId;
};
I am getting an error , saying name does not exist , id does not exist . How can i fomat the body for a request in c# ?
解决方案
推荐阅读
- python - 为什么我的 for 循环运行次数超过我指定的次数?
- php - 无法让 Zend 在 Windows 7 上使用 PHP
- c++ - C ++将两个不同类型的向量的属性连接到新向量中
- javascript - 无法使用 jquery 重定向到页面
- python-3.x - Python:在另一个数组的位置设置数组的值
- sql - Take() 使用实体框架获取表中的所有行(查询视图时)
- c++ - 围绕“?”的使用感到困惑,因为没有假定值
- amazon-web-services - AWS S3 上传的文件未显示
- javascript - Extjs - 在 Model.save() 中重试 API 请求
- authentication - 是否可以使用 OAuth 对用户进行身份验证并生成令牌?