Uploads the file for the given server item path on the given workspace.
Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
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
)
public:
void UploadFile(
    TeamFoundationRequestContext^ requestContext, 
    String^ workspaceName, 
    String^ workspaceOwner, 
    String^ serverItem, 
    array<unsigned char>^ hash, 
    Stream^ fileStream, 
    long long fileLength, 
    long long compressedLength, 
    long long offsetFrom, 
    CompressionType compressionType
)
member UploadFile : 
        requestContext:TeamFoundationRequestContext * 
        workspaceName:string * 
        workspaceOwner:string * 
        serverItem:string * 
        hash:byte[] * 
        fileStream:Stream * 
        fileLength:int64 * 
        compressedLength:int64 * 
        offsetFrom:int64 * 
        compressionType:CompressionType -> unit
public function UploadFile(
    requestContext : TeamFoundationRequestContext, 
    workspaceName : String, 
    workspaceOwner : String, 
    serverItem : String, 
    hash : byte[], 
    fileStream : Stream, 
    fileLength : long, 
    compressedLength : long, 
    offsetFrom : long, 
    compressionType : CompressionType
)
Parameters
- requestContext 
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext- The request context. 
- workspaceName 
 Type: System.String- The workspace name which has the pending edit. 
- workspaceOwner 
 Type: System.String- The owner of the workspace. 
- serverItem 
 Type: System.String- The server item of the file. 
- hash 
 Type: array<System.Byte[]- MD5 hash of the uncompressed file. 
- fileStream 
 Type: System.IO.Stream- Stream that contains the file contents. 
- fileLength 
 Type: System.Int64- The length of the uncompressed file in bytes. 
- compressedLength 
 Type: System.Int64- The length of the compressed file in bytes. 
- offsetFrom 
 Type: System.Int64- The starting offset of this content chunk. 
- compressionType 
 Type: Microsoft.TeamFoundation.Framework.Server.CompressionType- The type of compression used. 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.