Edit

Share via


GraphExtensions.GetMyPhotoAsync(GraphServiceClient) Method

Definition

Get the photo of the current user.

public static System.Threading.Tasks.Task<System.IO.Stream> GetMyPhotoAsync(this Microsoft.Graph.GraphServiceClient graph);
static member GetMyPhotoAsync : Microsoft.Graph.GraphServiceClient -> System.Threading.Tasks.Task<System.IO.Stream>
<Extension()>
Public Function GetMyPhotoAsync (graph As GraphServiceClient) As Task(Of Stream)

Parameters

graph
Microsoft.Graph.GraphServiceClient

Instance of the Microsoft.Graph.GraphServiceClient.

Returns

Stream with user photo or null.

Applies to