【发布时间】:2020-01-02 16:12:17
【问题描述】:
使用 Graph API NuGet 包,如何填充 SharePointIds 属性。
考虑以下代码sn-p:
public async Task<Drive> RetrieveOneDriveForUserAsync(string userId)
{
return await _graphClient.Users[userId].Drive.Request().GetAsync();
}
“SharepointIds”属性始终为 NULL
编辑:
注意:这不适用于个人 OneDrive 项目。这适用于 Group OneDrive 项目。
这是 Drive 对象的文档:https://docs.microsoft.com/en-us/graph/api/resources/drive?view=graph-rest-1.0
这是 DriveItem 对象的文档:https://docs.microsoft.com/en-us/graph/api/resources/driveitem?view=graph-rest-1.0
这是 SharepointIds 对象的文档:https://docs.microsoft.com/en-us/graph/api/resources/sharepointids?view=graph-rest-1.0
【问题讨论】:
标签: microsoft-graph-api onedrive microsoft-graph-sdks