مشاركة عبر


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.

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

PickSingleFileAsync(String)

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