c# - Microsoft Graph API,文件夹资源类型

标签 c# microsoft-graph-api onedrive directory-structure

根据 Microsoft 文档

https://learn.microsoft.com/en-us/graph/api/resources/folder?view=graph-rest-1.0 ,

Folder资源类型具有属性childCountview

childCount 是同时包含文件和文件夹计数还是仅包含文件/文件夹计数?

如果它同时返回文件和文件夹计数,有什么方法可以只获取文件计数吗?

最佳答案

folder 资源类型的

childCount 属性包括文件和文件夹计数。

childCount = foldersCount + filesCount

关于c# - Microsoft Graph API,文件夹资源类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72517041/

相关文章:

c# - 如何将流写入独立存储中的 xml 文件

onedrive - 错误 : Public clients can't send a client secret while try to get access token in Onedrive

Azure Graph API 邀请返回 400 错误请求

c# - 如何在 C# 中将 Color Lut 应用于位图图像

c# - 每个客户端的 WCF CPU 使用率增加 25%

c# - 异步运行同步代码

c# - 未找到范围 (scp) 中的 Azure AD 访问 token

json - 获取所有应用程序扩展,以及仅从 MS Graph 获取对象的应用程序扩展

c# - Microsoft Office 文档显示 Sharepoint URL 而不是本地

c# 应用程序无法在 XP 上运行