IsolatedStorageFile.FileExists(String) Metodo

Definizione

Determina se il percorso specificato fa riferimento a un file esistente nell'archivio isolato.

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

Parametri

path
String

Percorso e nome file da verificare.

Restituisce

true se path fa riferimento a un file esistente nell'archivio isolato e non è null; in caso contrario false.

Attributi

Eccezioni

path è null.

L'archivio isolato è chiuso.

L'archivio isolato è stato eliminato.

L'archivio isolato è stato rimosso.

Si applica a

Vedi anche