Share via


TeamFoundationVersionControlService.DownloadFile Method

Downloads the file at the given server path and version to the specified local path.

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

Syntax

'Declaration
Public Sub DownloadFile ( _
    requestContext As TeamFoundationRequestContext, _
    serverPath As String, _
    deletionId As Integer, _
    version As VersionSpec, _
    localFileName As String _
)
public void DownloadFile(
    TeamFoundationRequestContext requestContext,
    string serverPath,
    int deletionId,
    VersionSpec version,
    string localFileName
)
public:
void DownloadFile(
    TeamFoundationRequestContext^ requestContext, 
    String^ serverPath, 
    int deletionId, 
    VersionSpec^ version, 
    String^ localFileName
)
member DownloadFile : 
        requestContext:TeamFoundationRequestContext * 
        serverPath:string * 
        deletionId:int * 
        version:VersionSpec * 
        localFileName:string -> unit
public function DownloadFile(
    requestContext : TeamFoundationRequestContext, 
    serverPath : String, 
    deletionId : int, 
    version : VersionSpec, 
    localFileName : String
)

Parameters

  • serverPath
    Type: System.String

    The server path of the file to download.

  • deletionId
    Type: System.Int32

    The deletion ID of the file.

  • localFileName
    Type: System.String

    The local path to download the file to.

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

Microsoft.TeamFoundation.VersionControl.Server Namespace