FileOpenPicker.PickSingleFileAsync FileOpenPicker.PickSingleFileAsync FileOpenPicker.PickSingleFileAsync FileOpenPicker.PickSingleFileAsync FileOpenPicker.PickSingleFileAsync Method

Definition

Overloads

PickSingleFileAsync() PickSingleFileAsync() PickSingleFileAsync() PickSingleFileAsync() PickSingleFileAsync()

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

PickSingleFileAsync(String) PickSingleFileAsync(String) PickSingleFileAsync(String) PickSingleFileAsync(String) PickSingleFileAsync(String)

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

PickSingleFileAsync() PickSingleFileAsync() PickSingleFileAsync() PickSingleFileAsync() PickSingleFileAsync()

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

public : IAsyncOperation<StorageFile> PickSingleFileAsync()
IAsyncOperation<StorageFile> PickSingleFileAsync() const;
public IAsyncOperation<StorageFile> PickSingleFileAsync()
Public Function PickSingleFileAsync() As IAsyncOperation(Of StorageFile)
Windows.Storage.Pickers.FileOpenPicker.pickSingleFileAsync().done( /* Your success and error handlers */ );

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

PickSingleFileAsync(String) PickSingleFileAsync(String) PickSingleFileAsync(String) PickSingleFileAsync(String) PickSingleFileAsync(String)

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

public : IAsyncOperation<StorageFile> PickSingleFileAsync(Platform::String pickerOperationId)
IAsyncOperation<StorageFile> PickSingleFileAsync(winrt::hstring pickerOperationId) const;
public IAsyncOperation<StorageFile> PickSingleFileAsync(String pickerOperationId)
Public Function PickSingleFileAsync(pickerOperationId As String) As IAsyncOperation(Of StorageFile)
Windows.Storage.Pickers.FileOpenPicker.pickSingleFileAsync(pickerOperationId).done( /* Your success and error handlers */ );

Parameters

pickerOperationId
String String 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.

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