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, _
ByRef fileId As Integer, _
content As Stream, _
hashValue As Byte(), _
compressedLength As Long, _
uncompressedLength As Long, _
offsetFrom As Long, _
compressionType As CompressionType, _
ownerId As OwnerId, _
fileName As String, _
relatedFileId As Integer _
) As Boolean
public bool UploadFile(
TeamFoundationRequestContext requestContext,
ref int fileId,
Stream content,
byte[] hashValue,
long compressedLength,
long uncompressedLength,
long offsetFrom,
CompressionType compressionType,
OwnerId ownerId,
string fileName,
int relatedFileId
)
public:
bool UploadFile(
TeamFoundationRequestContext^ requestContext,
int% fileId,
Stream^ content,
array<unsigned char>^ hashValue,
long long compressedLength,
long long uncompressedLength,
long long offsetFrom,
CompressionType compressionType,
OwnerId ownerId,
String^ fileName,
int relatedFileId
)
member UploadFile :
requestContext:TeamFoundationRequestContext *
fileId:int byref *
content:Stream *
hashValue:byte[] *
compressedLength:int64 *
uncompressedLength:int64 *
offsetFrom:int64 *
compressionType:CompressionType *
ownerId:OwnerId *
fileName:string *
relatedFileId:int -> bool
public function UploadFile(
requestContext : TeamFoundationRequestContext,
fileId : int,
content : Stream,
hashValue : byte[],
compressedLength : long,
uncompressedLength : long,
offsetFrom : long,
compressionType : CompressionType,
ownerId : OwnerId,
fileName : String,
relatedFileId : int
) : boolean
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- fileId
Type: System.Int32%
- content
Type: System.IO.Stream
- hashValue
Type: array<System.Byte[]
- compressedLength
Type: System.Int64
- uncompressedLength
Type: System.Int64
- offsetFrom
Type: System.Int64
- compressionType
Type: Microsoft.TeamFoundation.Framework.Server.CompressionType
- ownerId
Type: Microsoft.TeamFoundation.Framework.Server.OwnerId
- fileName
Type: System.String
- relatedFileId
Type: System.Int32
Return Value
Type: System.Boolean
true if upload is complete (that is this is the last chunk)
.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.