FolderPicker.PickAsync 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.
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
- cancellationToken
- CancellationToken
Returns
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
- cancellationToken
- CancellationToken