IsolatedStorageFile.FileExists(String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine si le chemin d’accès spécifié fait référence à un fichier existant du magasin isolé.
public:
bool FileExists(System::String ^ path);
public bool FileExists (string path);
[System.Runtime.InteropServices.ComVisible(false)]
public bool FileExists (string path);
member this.FileExists : string -> bool
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.FileExists : string -> bool
Public Function FileExists (path As String) As Boolean
Paramètres
- path
- String
Chemin d’accès et nom du fichier à tester.
Retours
true
si path
fait référence à un fichier existant du magasin isolé et n’est pas null
; sinon, false
.
- Attributs
Exceptions
path
a la valeur null
.
Le magasin isolé est fermé.
Le magasin isolé a été supprimé.
Le magasin isolé a été supprimé.
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour