GraphExtensions.GetUserAsync(GraphServiceClient, String) 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 a user by id.
public static System.Threading.Tasks.Task<Microsoft.Graph.User> GetUserAsync(this Microsoft.Graph.GraphServiceClient graph, string userId);
static member GetUserAsync : Microsoft.Graph.GraphServiceClient * string -> System.Threading.Tasks.Task<Microsoft.Graph.User>
<Extension()>
Public Function GetUserAsync (graph As GraphServiceClient, userId As String) As Task(Of User)
Parameters
- graph
- Microsoft.Graph.GraphServiceClient
Instance of the Microsoft.Graph.GraphServiceClient.
- userId
- String
The is of the user to retrieve.
Returns
A Task representing the asynchronous operation.