Share via


IsolatedStorageFile.FileExists(String) Método

Definição

Determina se o caminho especificado refere-se a um arquivo existente no repositório isolado.

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

O caminho e o nome de arquivo a serem testados.

Retornos

true se path se referir a um arquivo existente no repositório isolado e não for null; caso contrário, false.

Atributos

Exceções

path é null.

O repositório isolado está fechado.

O repositório isolado foi descartado.

O repositório isolado foi removido.

Aplica-se a

Confira também