NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IsolatedStorageFile.GetFileNames

Enumerates files in isolated storage scope that matach given pattern.

[Visual Basic]
Public Function GetFileNames( _
   ByVal searchCriteria As String _
) As String ()
[C#]
public string[] GetFileNames(
   string searchCriteria
);
[C++]
public: String* GetFileNames(
   String* searchCriteria
) [];
[JScript]
public function GetFileNames(
   searchCriteria : String
) : String[];

Parameters

searchCriteria
Wildcard string expression describing matching files to the enumerated

Return Value

Array of strings corresponding to the relative pathnames of files in the isolated storage scope that matchsearchCriteria. A zero-lengthed array designates that no files matched.

Remarks

For complete description of search criteria strings see System.IO.Directory.

For directory names seeGetDirectoryNames method.

Example

The searchCriteria "foo\abc*.txt" will give all ".txt" files beginning with "abc" in the "foo" directory of the isolated storage scope.

See Also

IsolatedStorageFile Class | IsolatedStorageFile Members | System.IO.IsolatedStorage Namespace