GraphExtensions.GetMeAsync(GraphServiceClient) 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.
Retrieve the curernt user.
public static System.Threading.Tasks.Task<Microsoft.Graph.User> GetMeAsync(this Microsoft.Graph.GraphServiceClient graph);
static member GetMeAsync : Microsoft.Graph.GraphServiceClient -> System.Threading.Tasks.Task<Microsoft.Graph.User>
<Extension()>
Public Function GetMeAsync (graph As GraphServiceClient) As Task(Of User)
Parameters
- graph
- Microsoft.Graph.GraphServiceClient
Instance of the Microsoft.Graph.GraphServiceClient.
Returns
Task<Microsoft.Graph.User>
A Task representing the asynchronous operation.