Share via


TeamFoundationFileService.UploadFile Method (TeamFoundationRequestContext, Stream, 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, _
    ownerId As OwnerId _
) As Integer
public int UploadFile(
    TeamFoundationRequestContext requestContext,
    Stream content,
    OwnerId ownerId
)
public:
int UploadFile(
    TeamFoundationRequestContext^ requestContext, 
    Stream^ content, 
    OwnerId ownerId
)
member UploadFile : 
        requestContext:TeamFoundationRequestContext * 
        content:Stream * 
        ownerId:OwnerId -> int
public function UploadFile(
    requestContext : TeamFoundationRequestContext, 
    content : Stream, 
    ownerId : OwnerId
) : int

Parameters

Return Value

Type: System.Int32
a file identifier

.NET Framework Security

See Also

Reference

TeamFoundationFileService Class

UploadFile Overload

Microsoft.TeamFoundation.Framework.Server Namespace