TeamFoundationFileService.UploadFile Method (TeamFoundationRequestContext, Stream, array<Byte , Int64, CompressionType, OwnerId, String, Int32)
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, _
hashValue As Byte(), _
uncompressedLength As Long, _
compressionType As CompressionType, _
ownerId As OwnerId, _
fileName As String, _
relatedFileId As Integer _
) As Integer
public int UploadFile(
TeamFoundationRequestContext requestContext,
Stream content,
byte[] hashValue,
long uncompressedLength,
CompressionType compressionType,
OwnerId ownerId,
string fileName,
int relatedFileId
)
public:
int UploadFile(
TeamFoundationRequestContext^ requestContext,
Stream^ content,
array<unsigned char>^ hashValue,
long long uncompressedLength,
CompressionType compressionType,
OwnerId ownerId,
String^ fileName,
int relatedFileId
)
member UploadFile :
requestContext:TeamFoundationRequestContext *
content:Stream *
hashValue:byte[] *
uncompressedLength:int64 *
compressionType:CompressionType *
ownerId:OwnerId *
fileName:string *
relatedFileId:int -> int
public function UploadFile(
requestContext : TeamFoundationRequestContext,
content : Stream,
hashValue : byte[],
uncompressedLength : long,
compressionType : CompressionType,
ownerId : OwnerId,
fileName : String,
relatedFileId : int
) : int
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- content
Type: System.IO.Stream
- hashValue
Type: array<System.Byte[]
- uncompressedLength
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.Int32
.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.