Edit

Share via


GraphExtensions.CreateFolderAsync Method

Definition

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.

Applies to