【问题标题】:How to find whether the file is open or close in Windows surface apps如何在 Windows Surface 应用程序中查找文件是打开还是关闭
【发布时间】:2013-12-12 06:52:58
【问题描述】:

我使用此代码打开一个文件

await Windows.System.Launcher.LaunchFileAsync(fileToLaunch);

现在我必须检查文件是处于打开模式还是关闭模式。 请帮帮我。

【问题讨论】:

    标签: windows c#-4.0 microsoft-metro


    【解决方案1】:

    我猜你的意思是如果启动确实有效,方法调用结果应该告诉你

    Windows.System.Launcher.launchFileAsync(file, options).then(
          function (success) {
            if (success) {
    
            } else {
    
            }
          });
    

    在此之后,您可能无法获得有关文件状态的信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-09
      相关资源
      最近更新 更多