Method ListAll
ListAll(DirectoryInfo)
Lists all files (not subdirectories) in the
directory. This method never returns null
(throws
System.IO.IOException instead).
Declaration
public static string[] ListAll(DirectoryInfo dir)
Parameters
Type | Name | Description |
---|---|---|
System.IO.DirectoryInfo | dir |
Returns
Type | Description |
---|---|
System.String[] |
Exceptions
Type | Condition |
---|---|
System.IO.DirectoryNotFoundException | if the directory does not exist, or does exist but is not a directory or is invalid (for example, it is on an unmapped drive). |
System.Security.SecurityException | The caller does not have the required permission. |
ListAll()
Lists all files (not subdirectories) in the directory.
Declaration
public string[] ListAll()
Returns
Type | Description |
---|---|
System.String[] |