FileOpenPicker.PickSingleFileAsync Méthode

Définition

Surcharges

PickSingleFileAsync()

Affiche le sélecteur de fichiers afin que l’utilisateur puisse choisir un fichier.

PickSingleFileAsync(String)

Affiche le sélecteur de fichiers afin que l’utilisateur puisse choisir un fichier.

PickSingleFileAsync()

Affiche le sélecteur de fichiers afin que l’utilisateur puisse choisir un fichier.

public:
 virtual IAsyncOperation<StorageFile ^> ^ PickSingleFileAsync() = PickSingleFileAsync;
IAsyncOperation<StorageFile> PickSingleFileAsync();
public IAsyncOperation<StorageFile> PickSingleFileAsync();
function pickSingleFileAsync()
Public Function PickSingleFileAsync () As IAsyncOperation(Of StorageFile)

Retours

Lorsque l’appel à cette méthode se termine correctement, il retourne un objet StorageFile qui représente le fichier que l’utilisateur a choisi.

Remarques

Cette API n’est pas prise en charge pour Windows Phone pour Windows Runtime ou Microsoft Silverlight. Utilisez Plutôt PickSingleFileAndContinue .

Voir aussi

S’applique à

PickSingleFileAsync(String)

Affiche le sélecteur de fichiers afin que l’utilisateur puisse choisir un fichier.

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)

Paramètres

pickerOperationId
String

Platform::String

winrt::hstring

Cet argument est ignoré et n’a aucun effet.

Retours

Lorsque l’appel à cette méthode se termine correctement, il retourne un objet StorageFile qui représente le fichier que l’utilisateur a choisi.

Attributs

Remarques

Application UWP uniquement. Cette signature n’est pas prise en charge. Utilisez Plutôt PickSingleFileAsync .

Windows Phone application 8.x uniquement. Cette signature n’est pas prise en charge. Utilisez Plutôt PickSingleFileAndContinue .

Voir aussi

S’applique à