Edit

Share via


GraphExtensions.ReadFolderAsync(GraphServiceClient, String, String) Method

Definition

Retrieve a list of directory items with names and types.

public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<(Microsoft.Toolkit.Helpers.DirectoryItemType, string)>> ReadFolderAsync(this Microsoft.Graph.GraphServiceClient graph, string userId, string folderPath);
static member ReadFolderAsync : Microsoft.Graph.GraphServiceClient * string * string -> System.Threading.Tasks.Task<seq<ValueTuple<Microsoft.Toolkit.Helpers.DirectoryItemType, string>>>
<Extension()>
Public Function ReadFolderAsync (graph As GraphServiceClient, userId As String, folderPath As String) As Task(Of IEnumerable(Of ValueTuple(Of DirectoryItemType, String)))

Parameters

graph
Microsoft.Graph.GraphServiceClient

Instance of the Microsoft.Graph.GraphServiceClient.

userId
String

The id of the target Graph user.

folderPath
String

The path to create the new folder in.

Returns

A Task with the directory listings.

Applies to