다음을 통해 공유


TeamFoundationFileService.UploadFile Method (TeamFoundationRequestContext, array<Byte[], array<Byte )

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

Parameters

  • content
    Type: array<System.Byte[]

    uncompressed content

  • 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