Graph 发送带附件的邮件时报错 - The property 'contentBytes' does not exist on type 'microsoft.graph.attachment'.
行 李
0
信誉分
在我获取到Access Token后使用HttpClient进行不带附件的邮件发送时,他是正常的,但如果添加附件后,就会报错,下面是我的代码:
提示以下报错信息:The property 'contentBytes' does not exist on type 'microsoft.graph.attachment'。意思是我传入的Attachment没有被正确识别成microsoft.graph.fileAttachment,网上说与OdataType未设置有关,我认为我的设置是正确的,请问这个问题是为什么?
开发人员技术 | C#
登录以回答