IsolatedStorageFile.DirectoryExists Method
Determines whether the specified path refers to an existing directory in the isolated store.
Namespace: System.IO.IsolatedStorage
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.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.