Export (0) Print
Expand All

IsolatedStorageFile.GetDirectoryNames Method

Enumerates the directories at the root of an isolated store.

Namespace:  System.IO.IsolatedStorage
Assembly:  mscorlib (in mscorlib.dll)

[ComVisibleAttribute(false)]
public string[] GetDirectoryNames()

Return Value

Type: System.String[]
An array of relative paths of directories at the root of the isolated store. A zero-length array specifies that there are no directories at the root.

ExceptionCondition
ObjectDisposedException

The isolated store has been disposed.

InvalidOperationException

The isolated store is closed.

IsolatedStorageException

The isolated store has been removed.

UnauthorizedAccessException

Caller does not have permission to enumerate directories.

DirectoryNotFoundException

One or more directories are not found.

This method is equivalent to using the IsolatedStorageFile.GetDirectoryNames(String) method with "*" specified for the search pattern.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft