FileOpenPicker.PickSingleFileAsync Method

Definition

Overloads

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.

PickSingleFileAsync()

Shows the file picker so that the user can pick one file.

C#
public IAsyncOperation<StorageFile> PickSingleFileAsync();

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

PickSingleFileAsync(String)

Shows the file picker so that the user can pick one file.

C#
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageFile> PickSingleFileAsync(string pickerOperationId);

Parameters

pickerOperationId
String

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