GraphExtensions.GetFileAsync<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get a file from the remote.
public static System.Threading.Tasks.Task<T> GetFileAsync<T>(this Microsoft.Graph.GraphServiceClient graph, string userId, string itemPath, Microsoft.Toolkit.Helpers.IObjectSerializer serializer);
static member GetFileAsync : Microsoft.Graph.GraphServiceClient * string * string * Microsoft.Toolkit.Helpers.IObjectSerializer -> System.Threading.Tasks.Task<'T>
<Extension()>
Public Function GetFileAsync(Of T) (graph As GraphServiceClient, userId As String, itemPath As String, serializer As IObjectSerializer) As Task(Of T)
Type Parameters
- T
The type of object to return.
Parameters
- graph
- Microsoft.Graph.GraphServiceClient
Instance of the Microsoft.Graph.GraphServiceClient.
- userId
- String
The id of the target Graph user.
- itemPath
- String
The path of the target item.
- serializer
- IObjectSerializer
A serializer for converting stored values.
Returns
A Task representing the asynchronous operation.