Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Downloads the specified 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)
Syntax
'Declaration
Public Sub DownloadFile ( _
serverPath As String, _
deletionId As Integer, _
version As VersionSpec, _
localFileName As String _
)
public void DownloadFile(
string serverPath,
int deletionId,
VersionSpec version,
string localFileName
)
public:
void DownloadFile(
String^ serverPath,
int deletionId,
VersionSpec^ version,
String^ localFileName
)
member DownloadFile :
serverPath:string *
deletionId:int *
version:VersionSpec *
localFileName:string -> unit
public function DownloadFile(
serverPath : String,
deletionId : int,
version : VersionSpec,
localFileName : String
)
Parameters
serverPath
Type: System.StringThe repository path of the file to download.
deletionId
Type: System.Int32The deletion ID of the file if it has been deleted.
version
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpecThe version of the file to download.
localFileName
Type: System.StringThe local path where the local file should be stored.
.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.