IsolatedStorageFile.DirectoryExists Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Determines whether the specified path refers to an existing directory in the isolated store.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- path
- Type: System.String
The path to test.
Return Value
Type: System.Booleantrue if path refers to an existing directory in the isolated store and is not null; otherwise, false.
| Exception | Condition |
|---|---|
| IsolatedStorageException | The isolated store has been removed. -or- Isolated storage is disabled. |
| ObjectDisposedException | The isolated store has been disposed. |
The following example deletes a specific directory if it exists. This example is part of a larger example provided for IsolatedStorageFile class.
Show: