GetDirectoryNames Method
Collapse the table of content
Expand the table of content

IsolatedStorageFile.GetDirectoryNames Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Enumerates the directories in the root of an isolated store.

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

Public Function GetDirectoryNames As String()

Return Value

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


The isolated store has been removed.


Isolated storage is disabled.


The isolated store has been disposed.

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

The following example gets the names of the directories in the root directory. This example is part of a larger example provided for IsolatedStorageFile class.

Dim directoriesInTheRoot() As String = store.GetDirectoryNames

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2016 Microsoft