Share via


TeamFoundationVersionControlService.DownloadFile 方法

在特定服务器路径下载文件和版本到指定的本地路径。

命名空间:  Microsoft.TeamFoundation.VersionControl.Server
程序集:  Microsoft.TeamFoundation.VersionControl.Server(在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

语法

声明
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
)

参数

  • serverPath
    类型:System.String
    下载的文件的服务器路径。
  • localFileName
    类型:System.String
    下载文件的本地路径。

.NET Framework 安全性

请参阅

参考

TeamFoundationVersionControlService 类

Microsoft.TeamFoundation.VersionControl.Server 命名空间