如何使用图表 API 获取 Class 作业列表?

How can I get a list of Class Assignments using the Graph API?

当我执行此操作时:

GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var assignments = await graphClient
  .Education
  .Classes["classId"]
  .Assignments
  .Request()
  .GetAsync();

它returns这个错误:

IEducationClassRequestBuilder does not contain a definition for 'Assignments' and no extensible definition method...

但从 Graph Expolorer returns 预期的作业列表中调用以下内容。

https://graph.microsoft.com/beta/education/classes/{id}/assignments

有什么指点吗? 运行出毛来拔LOL,干杯

educationAssignment resources and endpoints are still in Beta and therefore not included in the main Microsoft Graph .NET Client Library.

要访问测试版 resources/endpoints,您需要 Microsoft Graph Beta .NET Client Library