使用 Microsoft Graph api 检索聊天成员

using microsoft graph api to retrieve chat members

关注这个 link : https://docs.microsoft.com/en-us/graph/api/conversationmember-list?view=graph-rest-beta&tabs=csharp

我尝试使用:

GraphServiceClient graphClient = new GraphServiceClient( authProvider );

var members = await graphClient.Me.Chats["{id}"].Members
    .Request()
    .GetAsync();

但是,visual studio 给出 IUserRequestBuilder 不包含 Chats 的定义。

Microsoft.Graph 从 NuGet 包 3.8.0 使用的版本

感谢

我认为聊天端点在测试版端点中。这意味着你应该在 vs 中使用 nuget 包 microsoft.graph.beta 而不是 microsoft.graph.