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 _
)
[C#]
public void AddFile(
 string fileName,
 bool keepFile
);
[C++]
public: void AddFile(
 String* fileName,
 bool keepFile
);
[JScript]
public function AddFile(
   fileName : String,
 keepFile : Boolean
);

Parameters

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

Requirements

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

Show: