Windows apps
Collapse the table of content
Expand the table of content
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 ()


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

Enumerates the file names at 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 at the root of the isolated store. A zero-length array specifies that there are no files at the root.

Exception Condition

The isolated store has been removed.


The isolated store has been disposed.


File paths from the isolated store root cannot be determined.

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

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2018 Microsoft