Edit

Share via


FolderPicker.PickAsync Method

Definition

Overloads

PickAsync(CancellationToken)

Allows the user to pick a folder from the file system

PickAsync(String, CancellationToken)

Allows the user to pick a folder from the file system

PickAsync(CancellationToken)

Source:
FolderPicker.shared.cs

Allows the user to pick a folder from the file system

public static System.Threading.Tasks.Task<CommunityToolkit.Maui.Storage.FolderPickerResult> PickAsync(System.Threading.CancellationToken cancellationToken);
static member PickAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<CommunityToolkit.Maui.Storage.FolderPickerResult>
Public Shared Function PickAsync (cancellationToken As CancellationToken) As Task(Of FolderPickerResult)

Parameters

Returns

FolderPickerResult

Applies to

PickAsync(String, CancellationToken)

Source:
FolderPicker.shared.cs

Allows the user to pick a folder from the file system

public static System.Threading.Tasks.Task<CommunityToolkit.Maui.Storage.FolderPickerResult> PickAsync(string initialPath, System.Threading.CancellationToken cancellationToken = default);
static member PickAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<CommunityToolkit.Maui.Storage.FolderPickerResult>
Public Shared Function PickAsync (initialPath As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of FolderPickerResult)

Parameters

initialPath
String

Initial path

Returns

FolderPickerResult

Applies to