TeamFoundationVersionControlService.UploadFile 方法

上載特定伺服器項目路徑上檔案的特定工作區。

命名空間:  Microsoft.TeamFoundation.VersionControl.Server
組件:  Microsoft.TeamFoundation.VersionControl.Server (在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

語法

'宣告
Public Sub UploadFile ( _
    requestContext As TeamFoundationRequestContext, _
    workspaceName As String, _
    workspaceOwner As String, _
    serverItem As String, _
    hash As Byte(), _
    fileStream As Stream, _
    fileLength As Long, _
    compressedLength As Long, _
    offsetFrom As Long, _
    compressionType As CompressionType _
)
public void UploadFile(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string workspaceOwner,
    string serverItem,
    byte[] hash,
    Stream fileStream,
    long fileLength,
    long compressedLength,
    long offsetFrom,
    CompressionType compressionType
)

參數

  • workspaceName
    類型:System.String
    有暫止的編輯的工作區名稱。
  • hash
    類型:array<System.Byte[]
    MD5 解壓縮檔案的雜湊。
  • fileLength
    類型:System.Int64
    解壓縮檔案的長度 (以位元組為單位)。
  • compressedLength
    類型:System.Int64
    壓縮檔案的長度 (以位元組為單位)。
  • offsetFrom
    類型:System.Int64
    起始位移此內容區塊。

.NET Framework 安全性

請參閱

參考

TeamFoundationVersionControlService 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間