Deployment Tools Foundation
CopyTo Method (destFileName, overwrite)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Compression ► ArchiveFileInfo ► CopyTo(String, Boolean)
Extracts the file, optionally overwriting any existing file.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public void CopyTo( string destFileName, bool overwrite )
Public Sub CopyTo ( destFileName As String, overwrite As Boolean )
public: void CopyTo( String^ destFileName, bool overwrite )
member CopyTo : destFileName : string * overwrite : bool -> unit
Exceptions
Exception | Condition |
---|---|
IOException | overwrite is false
and destFileName exists. |
Assembly: Microsoft.Deployment.Compression (Module: Microsoft.Deployment.Compression.dll) Version: 3.0.0.0 (3.11.1.2318)