Edit

Share via


GraphExtensions.GetUserPhoto(GraphServiceClient, String) Method

Definition

Helper to get the photo of a particular user.

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

Parameters

graph
Microsoft.Graph.GraphServiceClient

Instance of the Microsoft.Graph.GraphServiceClient.

userId
String

UserID.

Returns

Stream with user photo or null.

Applies to