Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/279.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
C# 获取Google驱动器子文件夹_C#_Google Api_Google Drive Api - Fatal编程技术网

C# 获取Google驱动器子文件夹

C# 获取Google驱动器子文件夹,c#,google-api,google-drive-api,C#,Google Api,Google Drive Api,如何获取驱动器文件夹的子文件夹 v2service.Children.List(folderId)方法似乎已消失 我正在使用c#Drive.v3 api。来自 从 我后来发现了查询参数--令人难以置信地松了一口气。在这个父文件夹ID中列出子文件夹和文件怎么样?我后来发现了查询参数--令人难以置信地松了一口气。在这个父文件夹ID中列出子文件夹和文件怎么样? FilesResource.ListRequest listRequest = service.Files.List();

如何获取驱动器文件夹的子文件夹

v2
service.Children.List(folderId)
方法似乎已消失

我正在使用c#Drive.v3 api。

来自


我后来发现了查询参数--令人难以置信地松了一口气。在这个父文件夹ID中列出子文件夹和文件怎么样?我后来发现了查询参数--令人难以置信地松了一口气。在这个父文件夹ID中列出子文件夹和文件怎么样?
        FilesResource.ListRequest listRequest = service.Files.List();
        listRequest.PageSize = 10;
        listRequest.Fields = "nextPageToken, files(id, name)";

        // List files.
        IList<Google.Apis.Drive.v3.Data.File> files = listRequest.Execute()
            .Files;
        listRequest.Q = "'my_folder_id' in parents";