IsolatedStorageFile.FileExists(String) Método
Definição
Determina se o caminho especificado refere-se a um arquivo existente no repositório isolado.Determines whether the specified path refers to an existing file in the isolated store.
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.The path and file name to test.
Retornos
true se path se referir a um arquivo existente no repositório isolado e não for null; caso contrário, false.true if path refers to an existing file in the isolated store and is not null; otherwise, false.
- Atributos
Exceções
path é null.path is null.
O repositório isolado está fechado.The isolated store is closed.
O repositório isolado foi descartado.The isolated store has been disposed.
O repositório isolado foi removido.The isolated store has been removed.