gpt4 book ai didi

c# - 如何在 WinRT 中获取文件大小?

转载 作者:太空狗 更新时间:2023-10-29 18:06:46 24 4
gpt4 key购买 nike

在 WinRT 中没有 FileInfo 类,只有 StorageFile 类。

如何使用 StorageFile 类获取文件的大小?

最佳答案

所以你去吧:


storageFile.getBasicPropertiesAsync().then(
function (basicProperties) {
var size = basicProperties.size;
}
);

关于c# - 如何在 WinRT 中获取文件大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14168439/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com