Created
August 12, 2014 06:07
-
-
Save chakkaradeep/5f797a344d138c920cd2 to your computer and use it in GitHub Desktop.
Office 365 API My Files - Update File Entity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static async Task Update(MyFile myFile, Stream streamFileContent) | |
{ | |
var file = await _spFilesClient.Files.GetById(myFile.Id).ToFile().ExecuteAsync(); | |
file.Name = myFile.Name; | |
await file.UpdateAsync(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment