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 命名空間