IsolatedStorageFile.GetDirectoryNames Method (String)
Enumerates directories in an isolated storage scope that match a given pattern.
Assembly: mscorlib (in mscorlib.dll)
'Declaration Public Function GetDirectoryNames ( _ searchPattern As String _ ) As String()
- Type: System.String
A search pattern. Both single-character ("?") and multi-character ("*") wildcards are supported.
The store has been removed.
Isolated storage is disabled.
searchPattern is badly formed.
searchPattern is Nothing.
Cannot find a part of the searchPattern.
The store has been disposed.
Wildcard characters must only be in the final element of a searchPattern. For instance, "directory1/*etc*" is a valid search string, but "*etc*/directory" is not.
The searchPattern "Project\Data*" will give all subdirectories of Project beginning with Data in the isolated storage scope. The searchPattern "*" will return all directories located in the root. For complete description of search string criteria, see the Directory class.