GraphExtensions.CreateFolderAsync Method
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.
Ensure a folder exists by name.
public static System.Threading.Tasks.Task CreateFolderAsync(this Microsoft.Graph.GraphServiceClient graph, string userId, string folderName, string path = default);
static member CreateFolderAsync : Microsoft.Graph.GraphServiceClient * string * string * string -> System.Threading.Tasks.Task
<Extension()>
Public Function CreateFolderAsync (graph As GraphServiceClient, userId As String, folderName As String, Optional path As String = Nothing) As Task
Parameters
- graph
- Microsoft.Graph.GraphServiceClient
Instance of the Microsoft.Graph.GraphServiceClient.
- userId
- String
The id of the target Graph user.
- folderName
- String
The name of the new folder.
- path
- String
The path to create the new folder in.
Returns
A Task representing the asynchronous operation.