GraphExtensions.GetUserPhoto(GraphServiceClient, String) 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.
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.