IsolatedStorageFile.GetFileNames 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 file names at the root of an isolated store.

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

[ComVisibleAttribute(false)]
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
IsolatedStorageException

The isolated store has been removed.

ObjectDisposedException

The isolated store has been disposed.

DirectoryNotFoundException

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
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: