Edit

Share via


GraphExtensions.FindUserAsync(GraphServiceClient, String) Method

Definition

Shortcut to perform a user query.

public static System.Threading.Tasks.Task<Microsoft.Graph.IGraphServiceUsersCollectionPage> FindUserAsync(this Microsoft.Graph.GraphServiceClient graph, string query);
static member FindUserAsync : Microsoft.Graph.GraphServiceClient * string -> System.Threading.Tasks.Task<Microsoft.Graph.IGraphServiceUsersCollectionPage>
<Extension()>
Public Function FindUserAsync (graph As GraphServiceClient, query As String) As Task(Of IGraphServiceUsersCollectionPage)

Parameters

graph
Microsoft.Graph.GraphServiceClient

Instance of the Microsoft.Graph.GraphServiceClient.

query
String

User to search for.

Returns

Task<Microsoft.Graph.IGraphServiceUsersCollectionPage>

Microsoft.Graph.IGraphServiceUsersCollectionPage collection of Microsoft.Graph.User.

Applies to