コード例 #1
0
ファイル: TaskService.cs プロジェクト: rrsc/uwp
 /// <summary>
 /// Save the creation date of the current file to the Last Upload Date settings
 /// </summary>
 /// <param name="fileToUpload">File to get creation date</param>
 /// <param name="dateSetting">Name of the date setting to save to settings</param>
 public static async Task SaveLastUploadDateAsync(StorageFile fileToUpload, string dateSetting)
 {
     await SettingsService.SaveSettingToFileAsync(dateSetting, fileToUpload.DateCreated.DateTime);
 }