Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

VersionControlServer.DownloadFile Method (String, Int32, VersionSpec, String)

Downloads the specified version of a file from the server to a local file.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

public void DownloadFile(
	string serverPath,
	int deletionId,
	VersionSpec version,
	string localFileName
)

Parameters

serverPath
Type: System.String

The repository path of the file to download.

deletionId
Type: System.Int32

The deletion ID of the file if it has been deleted.

version
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec

The version of the file to download.

localFileName
Type: System.String

The local path where the local file should be stored.

Show:
© 2015 Microsoft