IsolatedStorageFile.FileExists(String) Método

Definición

Determina si la ruta de acceso especificada hace referencia a un archivo existente en el almacén aislado.

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

Parámetros

path
String

Ruta de acceso y nombre de archivo que se va a probar.

Devoluciones

true si path hace referencia a un archivo existente en el almacén aislado y no nulles ; de lo contrario, false.

Atributos

Excepciones

path es null.

El almacén aislado está cerrado.

Se ha eliminado el almacén aislado.

Se ha quitado el almacén aislado.

Se aplica a

Consulte también