Click or drag to resize
IsolatedStorageFileFileExists Method
Determines whether the specified path refers to an existing file in the isolated store.

Namespace: System.IO.IsolatedStorage
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public bool FileExists(
	string path
)

Parameters

path
Type: SystemString
The path and file name to test.

Return Value

Type: Boolean
true if path refers to an existing file in the isolated store and is not null; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.
InvalidOperationExceptionThe isolated store is closed.
ObjectDisposedExceptionThe isolated store has been disposed.
IsolatedStorageExceptionThe isolated store has been removed.
See Also