IsolatedStorageFile.FileExists(String) Méthode

Définition

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é.

S’applique à

Voir aussi