GraphExtensions.GetMyPhotoAsync(GraphServiceClient) 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.
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.