OneDriveStorageHelper Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An IFileStorageHelper implementation for interacting with data stored via files and folders in OneDrive.
public class OneDriveStorageHelper : Microsoft.Toolkit.Helpers.IFileStorageHelper
type OneDriveStorageHelper = class
interface IFileStorageHelper
Public Class OneDriveStorageHelper
Implements IFileStorageHelper
- Inheritance
-
OneDriveStorageHelper
- Implements
Constructors
OneDriveStorageHelper(String, IObjectSerializer) |
Initializes a new instance of the OneDriveStorageHelper class. |
Properties
Serializer |
Gets an object serializer for converting objects in the data store. |
UserId |
Gets the id of the Graph user. |
Methods
CreateFileAsync<T>(String, T) |
Saves an object inside a file. |
CreateFolderAsync(String, String) |
Ensure a folder exists at the path specified. |
CreateFolderAsync(String) |
Ensure a folder exists at the folder path specified. |
CreateForCurrentUserAsync(IObjectSerializer) |
Creates a new instance using the userId retrieved from a Graph "Me" request. |
ReadFileAsync<T>(String, T) |
Retrieves an object from a file. |
ReadFolderAsync(String) |
Retrieves the listings for a folder and the item types. |
TryDeleteItemAsync(String) |
Deletes a file or folder item. |
TryRenameItemAsync(String, String) |
Rename an item. |