Share via


VersionControlServer.DownloadFile 方法 (String, Int32, VersionSpec, String)

下载的文件的指定版本从服务器到本地文件。

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

语法

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

参数

  • serverPath
    类型:System.String
    下载的文件的储存库路径。
  • deletionId
    类型:System.Int32
    文件的删除 ID,如果将其删除。
  • localFileName
    类型:System.String
    应存储本地文件的本地路径。

.NET Framework 安全性

请参见

参考

VersionControlServer 类

DownloadFile 重载

Microsoft.TeamFoundation.VersionControl.Client 命名空间