| Visual Basic (Declaration) | |
|---|---|
Public Overloads Sub Add( _ ByVal fileOrDirectory As String _ ) | |
| C# | |
|---|---|
public void Add( string fileOrDirectory ) | |
Parameters
- fileOrDirectory
| Exception | Description |
|---|---|
| System.ArgumentNullException | The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument. |
| System.IO.FileNotFoundException | The exception that is thrown when an attempt to access a file that does not exist on disk fails. |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
Reference
FileList ClassFileList Members
Overload List