Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

StorageContainer.GetFileNames Method (String)

Enumerates files in the root directory of a StorageContainer that match a given pattern.

Namespace: Microsoft.Xna.Framework.Storage
Assembly: Microsoft.Xna.Framework.Storage (in microsoft.xna.framework.storage.dll)

public string[] GetFileNames (
         string searchPattern
)

Parameters

searchPattern
Type: String
A search pattern. Both single-character ("?") and multicharacter ("*") wildcards are supported.

Return Value

An array of relative paths of files in the the root directory of StorageContainer scope that match searchPattern. A zero-length array specifies that there are no files that match.

GetFileNames applies only to the root directory of the StorageContainer. It does not examine any subdirectories.

Xbox 360, Windows 7, Windows Vista, Windows XP
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.