VersionControlServer.DownloadFile Method (String, String)

Downloads the latest 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 Sub DownloadFile ( _
    serverPath As String, _
    localFileName As String _
public void DownloadFile(
    string serverPath,
    string localFileName
void DownloadFile(
    String^ serverPath, 
    String^ localFileName
member DownloadFile : 
        serverPath:string * 
        localFileName:string -> unit
public function DownloadFile(
    serverPath : String, 
    localFileName : String


  • serverPath
    Type: System.String

    The repository path of the file to download.

  • localFileName
    Type: System.String

    The local path where the local file should be stored.

.NET Framework Security

See Also


VersionControlServer Class

DownloadFile Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace