Share via


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
    具有挂起的编辑的工作区域的名称。
  • workspaceOwner
    类型:System.String
    工作区域的所有者。
  • hash
    类型:array<System.Byte[]
    MD5 的未压缩文件的哈希。
  • fileLength
    类型:System.Int64
    未压缩文件的字节长度。
  • compressedLength
    类型:System.Int64
    压缩文件的字节长度。
  • offsetFrom
    类型:System.Int64
    开始的偏移量此内容区块。

.NET Framework 安全性

请参阅

参考

TeamFoundationVersionControlService 类

Microsoft.TeamFoundation.VersionControl.Server 命名空间