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 spécifié fait référence à un fichier existant dans le 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 de fichier à tester.
Retours
true si path fait référence à un fichier existant dans le 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é.