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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
serverPath
Type: System.StringThe server path of the file to download.
deletionId
Type: System.Int32The deletion ID of the file.
version
Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpecThe version of the file to download.
localFileName
Type: System.StringThe local path to download the file to.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.