FolderPicker Class
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.
Represents a dialog that allows the user to select a folder.
public ref class FolderPicker sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.Windows.Storage.Pickers.IFolderPickerFactory, 65544, "Microsoft.Windows.Storage.Pickers.StoragePickersContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.Storage.Pickers.StoragePickersContract, 65544)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class FolderPicker final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Windows.Storage.Pickers.IFolderPickerFactory), 65544, "Microsoft.Windows.Storage.Pickers.StoragePickersContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Storage.Pickers.StoragePickersContract), 65544)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class FolderPicker
function FolderPicker(windowId)
Public NotInheritable Class FolderPicker
- Inheritance
- Attributes
Remarks
Supports specifying the initial location and text on the commit button.
Constructors
| FolderPicker(WindowId) |
Creates a new instance of the FolderPicker class with a WindowId to reference the parent for the folder picker dialog. |
Properties
| CommitButtonText |
Specifies the text displayed on the commit button. If not specified, the system default text is used. |
| SuggestedFolder | |
| SuggestedStartFolder | |
| SuggestedStartLocation |
Specifies the initial location as a PickerLocationId. If not specified, PickerLocationId.Unspecified is used as the default location. |
| ViewMode |
Specifies the PickerViewMode of the folder picker. The view mode determines how the items in the folder picker are displayed. |
Methods
| PickSingleFolderAsync() |
Displays a dialog that allows the user to select a folder. |