Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IsolatedStorageFile.GetFileNames Method

Obtains the names of files in the root of an isolated store.

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

public string[] GetFileNames()

Return Value

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

ExceptionCondition
IsolatedStorageException

The isolated store has been removed.

-or-

Isolated storage is disabled.

ObjectDisposedException

The isolated store has been disposed.

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

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


string[] filesInTheRoot = store.GetFileNames();


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft