Share via


TeamFoundationFileService.UploadFile Method (TeamFoundationRequestContext, Int32%, Stream, array<Byte , Int64, Int64, Int64, CompressionType, OwnerId, String, Int32)

Uploads the given file to the Blob Store

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

Syntax

'Declaration
Public Function UploadFile ( _
    requestContext As TeamFoundationRequestContext, _
    ByRef fileId As Integer, _
    content As Stream, _
    hashValue As Byte(), _
    compressedLength As Long, _
    uncompressedLength As Long, _
    offsetFrom As Long, _
    compressionType As CompressionType, _
    ownerId As OwnerId, _
    fileName As String, _
    relatedFileId As Integer _
) As Boolean
public bool UploadFile(
    TeamFoundationRequestContext requestContext,
    ref int fileId,
    Stream content,
    byte[] hashValue,
    long compressedLength,
    long uncompressedLength,
    long offsetFrom,
    CompressionType compressionType,
    OwnerId ownerId,
    string fileName,
    int relatedFileId
)
public:
bool UploadFile(
    TeamFoundationRequestContext^ requestContext, 
    int% fileId, 
    Stream^ content, 
    array<unsigned char>^ hashValue, 
    long long compressedLength, 
    long long uncompressedLength, 
    long long offsetFrom, 
    CompressionType compressionType, 
    OwnerId ownerId, 
    String^ fileName, 
    int relatedFileId
)
member UploadFile : 
        requestContext:TeamFoundationRequestContext * 
        fileId:int byref * 
        content:Stream * 
        hashValue:byte[] * 
        compressedLength:int64 * 
        uncompressedLength:int64 * 
        offsetFrom:int64 * 
        compressionType:CompressionType * 
        ownerId:OwnerId * 
        fileName:string * 
        relatedFileId:int -> bool
public function UploadFile(
    requestContext : TeamFoundationRequestContext, 
    fileId : int, 
    content : Stream, 
    hashValue : byte[], 
    compressedLength : long, 
    uncompressedLength : long, 
    offsetFrom : long, 
    compressionType : CompressionType, 
    ownerId : OwnerId, 
    fileName : String, 
    relatedFileId : int
) : boolean

Parameters

Return Value

Type: System.Boolean
true if upload is complete (that is this is the last chunk)

.NET Framework Security

See Also

Reference

TeamFoundationFileService Class

UploadFile Overload

Microsoft.TeamFoundation.Framework.Server Namespace