Share via


TeamFoundationFileService.UploadFile Method (TeamFoundationRequestContext, Stream, OwnerId, String)

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