I am using the latest version of the MS Graph client (5.49.0) and .net 8
Microsoft Graph API with C# Get User detail
I am using the example code form the MS documentation, but the code fails to compile https://learn.microsoft.com/en-us/graph/api/reportroot-getm365appuserdetail?view=graph-rest-1.0&tabs=csharp#examples Example 2 Json output.
Stream? dataStream = await graphClient.Reports.GetM365AppUserDetailWithPeriod(period).GetAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Format = "application/json";
});
The complier complains about the use of Format.
Error CS1061 'DefaultQueryParameters' does not contain a definition for 'Format' and no accessible extension method 'Format' accepting a first argument of type 'DefaultQueryParameters' could be found (are you missing a using directive or an assembly reference?)
What directive or assembly reference is required for this.
Thanks