我已经成功设置了一个保管箱 API(使用 Spring.Social.DropBox),并且正在尝试以编程方式搜索我的保管箱文件夹。如何指定可以返回多种文件类型的查询?
DropboxServiceProvider ^dropboxServiceProvider = gcnew Spring::Social::Dropbox::Connect::DropboxServiceProvider(appKey, appSecret, Spring::Social::Dropbox::Api::AccessLevel::AppFolder);
IDropbox ^dropboxApi = dropboxServiceProvider->GetApi(myAccessToken, myAccessSecret);
System::String ^pth = "TestFolder";
System::String ^qry = ".txt";
System::Collections::Generic::IList<Spring::Social::Dropbox::Api::Entry^> ^results = dropboxApi->Search(pth, qry);
当查询仅指定一种文件类型(.txt、.png)时,上述代码有效。但是如何构造一个查询来检索多种文件类型呢?我试过了
System::String ^qry = ".txt;.png";
System::String ^qry = ".{txt|png}";
System::String ^qry = ".txt?.png";
知道怎么做吗?