如何使用图形 API 获取课堂作业列表?



当我执行这个时:

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

它返回此错误:

IEducationClassRequestBuilder不包含"赋值"的定义,也没有可扩展的定义方法...

但是从图形暴露器调用以下内容返回预期的分配列表。

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

请问有什么指示吗?跑光头发拔出大声笑,欢呼

educationAssignment资源和终结点仍处于 Beta 阶段,因此不包含在主Microsoft图形 .NET 客户端库中。

若要访问 Beta 资源/终结点,需要Microsoft图形Beta.NET 客户端库。

最新更新