次の方法で共有


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