Copies this file's contents to the destination file. The destination file will be overwritten if it already exists.

Namespace: W3CValidationTasks.Core
Assembly: W3CValidationTasks.Core (in W3CValidationTasks.Core.dll) Version: 1.1.1.40

Collapse imageSyntax

C#
public void CopyTo(
	IFileInfo destinationFile
)
Visual Basic
Public Sub CopyTo ( _
	destinationFile As IFileInfo _
)
Visual C++
public:
virtual void CopyTo(
	IFileInfo^ destinationFile
) sealed

Parameters

destinationFile
Type: W3CValidationTasks.Core..::..IFileInfo
The destination file.

Implements

IFileInfo..::..CopyTo(IFileInfo)

Collapse imageRemarks

If the destination file is also a local file, the simple approach of using Copy(String, String) is used. Otherwise, the Write(Action<(Of <<'(Stream>)>>), Int64) method is used to copy the local file's stream on the destination file.

Collapse imageSee Also