Edit

Share via


GraphExtensions.FindPersonAsync(GraphServiceClient, String) Method

Definition

Shortcut to perform a person query.

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

Parameters

graph
Microsoft.Graph.GraphServiceClient

Instance of the Microsoft.Graph.GraphServiceClient.

query
String

User to search for.

Returns

Task<Microsoft.Graph.IUserPeopleCollectionPage>

Microsoft.Graph.IUserPeopleCollectionPage collection of Microsoft.Graph.Person.

Applies to