/// <summary> /// Removes the permission from a OneDrive item /// </summary> /// <param name="item">The OneDrive item to add a permission to</param> /// <param name="permission">Permission object as received when creating a permission on the item</param> /// <returns>Boolean indicating if the operation was successful (true) or failed (false)</returns> public async Task <bool> RemovePermission(OneDriveItem item, OneDrivePermission permission) { return(await RemovePermission(item, permission.Id)); }
/// <summary> /// Changes permissions on a OneDrive item /// </summary> /// <param name="itemPath">The path to the OneDrive item to change the permission of</param> /// <param name="permissionType">Permission to set on the OneDrive item</param> /// <param name="permission">Permission object applied to the OneDrive item which needs its permissions changed</param> /// <returns>OneDrivePermissionResponse object representing the granted permission</returns> public async Task <OneDrivePermissionResponse> ChangePermission(string itemPath, OneDrivePermission permission, OneDriveLinkType permissionType) { return(await ChangePermission(itemPath, permission.Id, permissionType)); }
/// <summary> /// Removes the permission from a OneDrive item /// </summary> /// <param name="itemPath">The path to the OneDrive item to remove the permission from</param> /// <param name="permission">Permission object as received when creating a permission on the item</param> /// <returns>Boolean indicating if the operation was successful (true) or failed (false)</returns> public async Task <bool> RemovePermission(string itemPath, OneDrivePermission permission) { return(await RemovePermission(itemPath, permission.Id)); }
/// <summary> /// Changes permissions on a OneDrive item /// </summary> /// <param name="item">The OneDrive item to change the permission of</param> /// <param name="permissionType">Permission to set on the OneDrive item</param> /// <param name="permission">Permission object applied to the OneDrive item which needs its permissions changed</param> /// <returns>OneDrivePermissionResponse object representing the granted permission</returns> public async Task <OneDrivePermissionResponse> ChangePermission(OneDriveItem item, OneDrivePermission permission, OneDriveLinkType permissionType) { return(await ChangePermission(item, permission.Id, permissionType)); }