Export (0) Print
Expand All

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

Downloads the latest version of a file from the server and puts its contents in 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
)
public void DownloadFile (
	String serverPath, 
	int deletionId, 
	VersionSpec version, 
	String localFileName
)
public function DownloadFile (
	serverPath : String, 
	deletionId : int, 
	version : VersionSpec, 
	localFileName : String
)

Parameters

serverPath

The database path of the file to download.

deletionId

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

version

The version of the file to be downloaded.

localFileName

The local path where the file's contents should be stored.

Community Additions

ADD
Show:
© 2014 Microsoft