如何在c#中使用任何API从OneDrive获取Files \ Folders状态 [英] How to get Files\Folders status from OneDrive in c# with out using any APIs
本文介绍了如何在c#中使用任何API从OneDrive获取Files \ Folders状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用c#开发Windows应用程序来隐藏/取消隐藏OneDrive中的在线文件。
I am developing Windows application to hide/unhide online-only files from OneDrive using c#.
但是,OneDrive有三种类型的文件状态,如(云,离线,此设备上始终可用)代码如何获取每个文件的状态在OneDrive中存档。
But As OneDrive has three types file status like (Cloud, offline, always available on this device) from code how do I get file status of each file in OneDrive.
请建议。
问候,
Ramakanth
Ramakanth
推荐答案
< span style ="font-size:medium">您是否检查过返回本地文件的文件属性的函数,例如
FILE_ATTRIBUTE_OFFLINE 和 FILE_ATTRIBUTE_RECALL_ON_OPEN ( https://docs.microsoft.com / en-us / windows / desktop / FileIO / file-attribute-constants )?
这篇关于如何在c#中使用任何API从OneDrive获取Files \ Folders状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文