VersionControlServer.DownloadFile Method (String, String)

Downloads a file from Team Foundation Server and places its contents in a local file. This function only works on the most recent, non-deleted version of a file; there is an overload method that can download an old or deleted file.

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

public void DownloadFile(
	string serverPath,
	string localFileName
)

Parameters

serverPath
Type: System.String

The repository path ($/CmdLine/parser.cs) of the file that you want to download.

localFileName
Type: System.String

The local path (C:\test\parser.cs) where the file's contents should be stored.

Community Additions

ADD
Show: