WinRT にはFileInfoクラスはなく、クラスのみStorageFileです。
StorageFileクラスを使用してファイルのサイズを取得するにはどうすればよいですか?
WinRT にはFileInfoクラスはなく、クラスのみStorageFileです。
StorageFileクラスを使用してファイルのサイズを取得するにはどうすればよいですか?
だからここに行きます:
storageFile.getBasicPropertiesAsync().then(
    function (basicProperties) {
        var size  = basicProperties.size;
    }
);
C# の場合:
StorageFile file = await openPicker.PickSingleFileAsync();
BasicProperties pro = await file.GetBasicPropertiesAsync();
if (pro.Size != 0){}
BasicProperties には Windows.Storage.FileProperties を使用する必要があります。
これを試しましたか:
        create_task(file->GetBasicPropertiesAsync()).then([this, file](BasicProperties^ basicProperties)
        {
            String^ dateModifiedString = dateFormat->Format(basicProperties->DateModified) + " " + timeFormat->Format(basicProperties->DateModified);
            OutputTextBlock->Text += "\nファイル サイズ: " + basicProperties->Size.ToString() + " bytes" + "\n更新日: " + dateModifiedString;
        });