StorageLibrary.RequestAddFolderAsync StorageLibrary.RequestAddFolderAsync StorageLibrary.RequestAddFolderAsync StorageLibrary.RequestAddFolderAsync StorageLibrary.RequestAddFolderAsync Method

Definition

Prompts the user to select a folder, and then adds the folder to the library.

public : IAsyncOperation<StorageFolder> RequestAddFolderAsync()
IAsyncOperation<StorageFolder> RequestAddFolderAsync() const;
public IAsyncOperation<StorageFolder> RequestAddFolderAsync()
Public Function RequestAddFolderAsync() As IAsyncOperation(Of StorageFolder)
Windows.Storage.StorageLibrary.requestAddFolderAsync().done( /* Your success and error handlers */ );

Returns

When this method completes, it returns the folder that the user picked and added as a StorageFolder. If the user cancels the operation and doesn't pick a folder, the method returns null.

Remarks

The file picker displayed lets user select only library-eligible locations. If there are pending suggestions a suggestion dialog will be shown instead of a folder picker.

See Also