FileOpenPicker.PickSingleFileAsync Method
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.
PickSingleFileAsync() |
Shows the file picker so that the user can pick one file. |
PickSingleFileAsync(String) |
Shows the file picker so that the user can pick one file. |
Shows the file picker so that the user can pick one file.
public:
virtual IAsyncOperation<StorageFile ^> ^ PickSingleFileAsync() = PickSingleFileAsync;
IAsyncOperation<StorageFile> PickSingleFileAsync();
public IAsyncOperation<StorageFile> PickSingleFileAsync();
function pickSingleFileAsync()
Public Function PickSingleFileAsync () As IAsyncOperation(Of StorageFile)
Returns
When the call to this method completes successfully, it returns a StorageFile object that represents the file that the user picked.
Remarks
This API isn't supported for Windows Phone for either Windows Runtime or Microsoft Silverlight. Use PickSingleFileAndContinue instead.
See also
Applies to
WinRT Build 26100 and other versions
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |
Shows the file picker so that the user can pick one file.
public:
virtual IAsyncOperation<StorageFile ^> ^ PickSingleFileAsync(Platform::String ^ pickerOperationId) = PickSingleFileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageFile> PickSingleFileAsync(winrt::hstring const& pickerOperationId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageFile> PickSingleFileAsync(string pickerOperationId);
function pickSingleFileAsync(pickerOperationId)
Public Function PickSingleFileAsync (pickerOperationId As String) As IAsyncOperation(Of StorageFile)
Parameters
- pickerOperationId
-
String
Platform::String
winrt::hstring
This argument is ignored and has no effect.
Returns
When the call to this method completes successfully, it returns a StorageFile object that represents the file that the user picked.
- Attributes
Remarks
UWP app only. This signature isn't supported. Use PickSingleFileAsync instead.
Windows Phone 8.x app only. This signature isn't supported. Use PickSingleFileAndContinue instead.
See also
Applies to
WinRT Build 26100 and other versions
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |