我有一个Solution.dll,它具有打开SharePoint Online命令行管理程序并执行上述操作的方法。当我这样做时,我有时碰巧得到异常,
Could not load type 'Microsoft.Online.SharePoint.TenantManagement.SPOConditionalAccessPolicyType' from assembly 'Microsoft.Online.SharePoint.Client.Tenant, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce
我正在尝试通过图形开发工具包删除文档库(SharePoint online)中的文件
await client
.Drives[driveId]
.Items[sourceItemId]
.Request()
.DeleteAsync();
这项工作。但是如果文件是打开的,它会抛出这个错误:
Status Code: Locked
Microsoft.Graph.ServiceException: Code: resourceLocked
Message: The resource you are attempting to access is locked
我