Ejemplo n.º 1
0
 /// <summary>
 /// Asynchronously retrieves the time that this file was last modified.
 /// </summary>
 /// <returns>A task that resolves to when the file was last modified.</returns>
 public async Task <DateTimeOffset> GetLastModifiedAsync()
 {
     return((await WrappedFile.GetBasicPropertiesAsync()).DateModified);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Asynchronously clears the read-only flag of the file.
 /// </summary>
 /// <returns>A task that completes when the file is updated.</returns>
 public Task ClearReadOnlyFlag()
 {
     return(WrappedFile.ClearFileAttributesAsync(FileAttributes.ReadOnly));
 }