This documentation is archived and is not being maintained.

TempFileCollection.AddFile Method

Adds the specified file to the collection, using the specified value indicating whether to keep the file after the collection is disposed or when the Delete method is called.

[Visual Basic]
Public Sub AddFile( _
   ByVal fileName As String, _
   ByVal keepFile As Boolean _
public void AddFile(
 string fileName,
 bool keepFile
public: void AddFile(
 String* fileName,
 bool keepFile
public function AddFile(
   fileName : String,
 keepFile : Boolean


The name of the file to add to the collection.
true if the file should be kept after use; false if the file should be deleted.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

TempFileCollection Class | TempFileCollection Members | System.CodeDom.Compiler Namespace