CopyTo Method (destFileName, overwrite)

Microsoft Deployment Tools

Deployment Tools Foundation CopyTo Method (destFileName, overwrite)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.CompressionArchiveFileInfoCopyTo(String, Boolean)
Extracts the file, optionally overwriting any existing file.
Declaration Syntax
C# Visual Basic Visual C++
public void CopyTo(
	string destFileName,
	bool overwrite
)
Public Sub CopyTo ( _
	destFileName As String, _
	overwrite As Boolean _
)
public:
void CopyTo(
	String^ destFileName, 
	bool overwrite
)
Parameters
destFileName (String)
The destination path where the file will be extracted.
overwrite (Boolean)
If true, destFileName will be overwritten if it exists.
Exceptions
Exception Condition
IOException overwrite is false and destFileName exists.

Assembly: Microsoft.Deployment.Compression (Module: Microsoft.Deployment.Compression) Version: 3.0.0.0 (3.5.1623.0)