IsolatedStorageFile.GetDirectoryNames Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

Exception Condition
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.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: