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!

Directory.GetFileSystemEntries (String)

Retrieves an array of strongly typed FileSystemEntry objects matching the specified search criteria.

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

Parameters

searchCriteria
The search string.

Return Value

An array of strongly typed FileSystemEntry objects matching the search criteria.

Exceptions

Exception Type Condition
ArgumentNullException searchCriteria is null.

Remarks

".." can only be used in searchCriteria if it is specified as a part of a valid file or directory name. It cannot be used to move up the directory hierarchy. For example:

a..b abc..d is valid.

..ab ab.. .. abc..d\abc.. is invalid.

Other wild card characters are allowed in searchCriteria. For example, a search string such as "System*" would match both the System and System32 directories.

See Also

Directory Class | Directory Members | System.IO Namespace | Directory.GetFileSystemEntries Overload List | FileSystemEntry