IFolderPicker.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:
- IFolderPicker.shared.cs
Allows the user to pick a folder from the file system
public System.Threading.Tasks.Task<CommunityToolkit.Maui.Storage.FolderPickerResult> PickAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member PickAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<CommunityToolkit.Maui.Storage.FolderPickerResult>
Public Function PickAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of FolderPickerResult)
Parameters
- cancellationToken
- CancellationToken
Returns
Applies to
PickAsync(String, CancellationToken)
- Source:
- IFolderPicker.shared.cs
Allows the user to pick a folder from the file system
public System.Threading.Tasks.Task<CommunityToolkit.Maui.Storage.FolderPickerResult> PickAsync(string initialPath, System.Threading.CancellationToken cancellationToken = default);
abstract member PickAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<CommunityToolkit.Maui.Storage.FolderPickerResult>
Public Function PickAsync (initialPath As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of FolderPickerResult)
Parameters
- initialPath
- String
Initial path
- cancellationToken
- CancellationToken