更新集体照

问题描述 投票:0回答:1

https://docs.microsoft.com/en-us/graph/api/profilephoto-update?view=graph-rest-1.0&tabs=http上的文档相反,在.Content下没有可用的.Photo对象。

 group.Photo.Content.Request().PutAsync(photoStream).Result;

我正在寻求更新该论坛的个人资料照片,但该照片无法使用。

microsoft-graph microsoft-teams
1个回答
1
投票

下面的代码对我有用。可以请您尝试类似的方法。

GraphServiceClient graphClient = new GraphServiceClient(authProvider);
            var stream = await graphClient.Groups["groupId"].Photo.Content
                .Request()
                .GetAsync();

我已经安装了Microsoft.Graph Nuget版本3.4.0。

© www.soinside.com 2019 - 2024. All rights reserved.