64,646
社区成员
发帖
与我相关
我的任务
分享
std::for_each(begin(files), end(files), [files]( StorageFile^ file)
{
if (file)
{
auto getPropertityTask = create_task(file->Properties->GetImagePropertiesAsync());
getPropertityTask.then([file]( ImageProperties^ ImgProperty )
{
//获取文件属性
});
auto getStreamTask = create_task(file->OpenAsync(Windows::Storage::FileAccessMode::Read));
getStreamTask.then([file](IRandomAccessStream^ fileStream)
{
//获取文件流
});
}
}
//DoSomething