Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextSystem/User Request Context
content
Type: System.IO.Streamuncompressed content
- ownerId
Type: Microsoft.TeamFoundation.Framework.Server.OwnerId
- fileName
Type: System.String
Return Value
Type: System.Int32
a file identifier
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.