Sdílet prostřednictvím


IsolatedStorageFile.FileExists(String) Metoda

Definice

Určuje, zda zadaná cesta odkazuje na existující soubor v izolovaném úložišti.

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

Parametry

path
String

Cesta a název souboru k testování.

Návraty

truepokud path odkazuje na existující soubor v izolovaném úložišti a není null; v opačném případě . false

Atributy

Výjimky

path je null.

Izolované úložiště je uzavřeno.

Izolované úložiště bylo odstraněno.

Izolované úložiště bylo odebráno.

Platí pro

Viz také