TeamFoundationFileService.UploadFile Method (TeamFoundationRequestContext, 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 Overridable Function UploadFile ( _
requestContext As TeamFoundationRequestContext, _
content As Byte() _
) As Integer
public virtual int UploadFile(
TeamFoundationRequestContext requestContext,
byte[] content
)
public:
virtual int UploadFile(
TeamFoundationRequestContext^ requestContext,
array<unsigned char>^ content
)
abstract UploadFile :
requestContext:TeamFoundationRequestContext *
content:byte[] -> int
override UploadFile :
requestContext:TeamFoundationRequestContext *
content:byte[] -> int
public function UploadFile(
requestContext : TeamFoundationRequestContext,
content : byte[]
) : int
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextSystem/User Request Context
content
Type: array<System.Byte[]Uncompressed content
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.