TeamFoundationFileService.RetrieveFile Method (TeamFoundationRequestContext, Int32, CompressionType%)
Retrieves a file from the Blob Store
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function RetrieveFile ( _
requestContext As TeamFoundationRequestContext, _
fileId As Integer, _
<OutAttribute> ByRef compressionType As CompressionType _
) As Stream
public Stream RetrieveFile(
TeamFoundationRequestContext requestContext,
int fileId,
out CompressionType compressionType
)
public:
Stream^ RetrieveFile(
TeamFoundationRequestContext^ requestContext,
int fileId,
[OutAttribute] CompressionType% compressionType
)
member RetrieveFile :
requestContext:TeamFoundationRequestContext *
fileId:int *
compressionType:CompressionType byref -> Stream
public function RetrieveFile(
requestContext : TeamFoundationRequestContext,
fileId : int,
compressionType : CompressionType
) : Stream
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextUser/System request
fileId
Type: System.Int32File Identifier
compressionType
Type: Microsoft.TeamFoundation.Framework.Server.CompressionType%Compression Type (GZip/None)
Return Value
Type: System.IO.Stream
A Stream representing the file requested
.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.