Delen via


TeamFoundationFileService.UploadFile Method (TeamFoundationRequestContext, Stream, array<Byte , OwnerId)

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, _
    content As Stream, _
    hashValue As Byte(), _
    ownerId As OwnerId _
) As Integer
public int UploadFile(
    TeamFoundationRequestContext requestContext,
    Stream content,
    byte[] hashValue,
    OwnerId ownerId
)
public:
int UploadFile(
    TeamFoundationRequestContext^ requestContext, 
    Stream^ content, 
    array<unsigned char>^ hashValue, 
    OwnerId ownerId
)
member UploadFile : 
        requestContext:TeamFoundationRequestContext * 
        content:Stream * 
        hashValue:byte[] * 
        ownerId:OwnerId -> int
public function UploadFile(
    requestContext : TeamFoundationRequestContext, 
    content : Stream, 
    hashValue : byte[], 
    ownerId : OwnerId
) : int

Parameters

  • hashValue
    Type: array<System.Byte[]

    MD5 hash for this blob

Return Value

Type: System.Int32
a file identifier

.NET Framework Security

See Also

Reference

TeamFoundationFileService Class

UploadFile Overload

Microsoft.TeamFoundation.Framework.Server Namespace