Skip to content

Instantly share code, notes, and snippets.

@eirikb
Created March 31, 2014 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eirikb/9888740 to your computer and use it in GitHub Desktop.
Save eirikb/9888740 to your computer and use it in GitHub Desktop.
public static FileInformation GetFile(ClientContext clientContext, string fileRef)
{
using (var clientContextHack = new ClientContext(clientContext.Url))
{
return File.OpenBinaryDirect(clientContextHack, fileRef);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment