TeamFoundationFileContainerService.UploadFile Method
Uploads a file to the container.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function UploadFile ( _
requestContext As TeamFoundationRequestContext, _
containerId As Long, _
item As FileContainerItem, _
fileStream As Stream, _
offsetFrom As Long, _
compressedLength As Long, _
compressionType As CompressionType _
) As FileContainerItem
public FileContainerItem UploadFile(
TeamFoundationRequestContext requestContext,
long containerId,
FileContainerItem item,
Stream fileStream,
long offsetFrom,
long compressedLength,
CompressionType compressionType
)
public:
FileContainerItem^ UploadFile(
TeamFoundationRequestContext^ requestContext,
long long containerId,
FileContainerItem^ item,
Stream^ fileStream,
long long offsetFrom,
long long compressedLength,
CompressionType compressionType
)
member UploadFile :
requestContext:TeamFoundationRequestContext *
containerId:int64 *
item:FileContainerItem *
fileStream:Stream *
offsetFrom:int64 *
compressedLength:int64 *
compressionType:CompressionType -> FileContainerItem
public function UploadFile(
requestContext : TeamFoundationRequestContext,
containerId : long,
item : FileContainerItem,
fileStream : Stream,
offsetFrom : long,
compressedLength : long,
compressionType : CompressionType
) : FileContainerItem
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextRequest context.
containerId
Type: System.Int64container Id.
item
Type: Microsoft.VisualStudio.Services.FileContainer.FileContainerItemitem which the content is for.
fileStream
Type: System.IO.StreamContent being uploaded.
offsetFrom
Type: System.Int64Start position of the chunk being loaded.
compressedLength
Type: System.Int64Compressed length of the file.
compressionType
Type: Microsoft.TeamFoundation.Framework.Server.CompressionTypeCompression type.
Return Value
Type: Microsoft.VisualStudio.Services.FileContainer.FileContainerItem
.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.