Share via


TeamFoundationFileContainerService.UploadFile Method

Uploads a file to the container.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Function UploadFile ( _
    requestContext As TeamFoundationRequestContext, _
    containerId As Long, _
    item As FileContainerItem, _
    fileStream As Stream, _
    offsetFrom As Long, _
    compressedLength As Long, _
    compressionType As CompressionType _
) As FileContainerItem
public FileContainerItem UploadFile(
    TeamFoundationRequestContext requestContext,
    long containerId,
    FileContainerItem item,
    Stream fileStream,
    long offsetFrom,
    long compressedLength,
    CompressionType compressionType
)
public:
FileContainerItem^ UploadFile(
    TeamFoundationRequestContext^ requestContext, 
    long long containerId, 
    FileContainerItem^ item, 
    Stream^ fileStream, 
    long long offsetFrom, 
    long long compressedLength, 
    CompressionType compressionType
)
member UploadFile : 
        requestContext:TeamFoundationRequestContext * 
        containerId:int64 * 
        item:FileContainerItem * 
        fileStream:Stream * 
        offsetFrom:int64 * 
        compressedLength:int64 * 
        compressionType:CompressionType -> FileContainerItem
public function UploadFile(
    requestContext : TeamFoundationRequestContext, 
    containerId : long, 
    item : FileContainerItem, 
    fileStream : Stream, 
    offsetFrom : long, 
    compressedLength : long, 
    compressionType : CompressionType
) : FileContainerItem

Parameters

  • offsetFrom
    Type: System.Int64

    Start position of the chunk being loaded.

  • compressedLength
    Type: System.Int64

    Compressed length of the file.

Return Value

Type: Microsoft.VisualStudio.Services.FileContainer.FileContainerItem

.NET Framework Security

See Also

Reference

TeamFoundationFileContainerService Class

Microsoft.TeamFoundation.Framework.Server Namespace