DateCreated属性错误

时间:2016-08-10 16:42:59

标签: c# properties uwp storagefolder

我在用户的音乐库中获取了相册文件夹列表,如下所示:

public class viewer  extends javax.swing.JFrame {
private static closeInterface Closed;
   private void initComponents() throws IOException
  {
    addWindowListener(new java.awt.event.WindowAdapter()
    {
        @Override
        public void windowClosing(java.awt.event.WindowEvent evt)
        {
            exitApplication();
        }
    });
  }
  private void exitApplication()
  {
    try
    {
        if( document != null )
        {
            document.close();
        }
    }
    catch( IOException io )
    {
        //do nothing because we are closing the application
    }
    Closed.close();
    this.setVisible( false );
    this.dispose();
  }
   public void addListener(closeInterface closed){
    Closed = closed;
  }
}

但是,当我尝试在每个文件夹上获得var _folderList = await KnownFolders.MusicLibrary.GetFoldersAsync(CommonFolderQuery.GroupByAlbum); 道具时,大多数文件夹都显示在" 12/31/1600 7:00:00 PM"当然,这是非常错误的。奇怪的是,如果我使用Windows资源管理器来查看文件夹的属性,它们会显示完全不同的 - 并且正确 - 值。还有其他人遇到过这个问题吗?

0 个答案:

没有答案