Condividi tramite


TeamFoundationFileService.RetrieveFile Method (TeamFoundationRequestContext, Int32, Boolean, array<Byte %, Int64%, 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 Overridable Function RetrieveFile ( _
    requestContext As TeamFoundationRequestContext, _
    fileId As Integer, _
    compressOutput As Boolean, _
    <OutAttribute> ByRef hashValue As Byte(), _
    <OutAttribute> ByRef contentLength As Long, _
    <OutAttribute> ByRef compressionType As CompressionType _
) As Stream
public virtual Stream RetrieveFile(
    TeamFoundationRequestContext requestContext,
    int fileId,
    bool compressOutput,
    out byte[] hashValue,
    out long contentLength,
    out CompressionType compressionType
)
public:
virtual Stream^ RetrieveFile(
    TeamFoundationRequestContext^ requestContext, 
    int fileId, 
    bool compressOutput, 
    [OutAttribute] array<unsigned char>^% hashValue, 
    [OutAttribute] long long% contentLength, 
    [OutAttribute] CompressionType% compressionType
)
abstract RetrieveFile : 
        requestContext:TeamFoundationRequestContext * 
        fileId:int * 
        compressOutput:bool * 
        hashValue:byte[] byref * 
        contentLength:int64 byref * 
        compressionType:CompressionType byref -> Stream  
override RetrieveFile : 
        requestContext:TeamFoundationRequestContext * 
        fileId:int * 
        compressOutput:bool * 
        hashValue:byte[] byref * 
        contentLength:int64 byref * 
        compressionType:CompressionType byref -> Stream
public function RetrieveFile(
    requestContext : TeamFoundationRequestContext, 
    fileId : int, 
    compressOutput : boolean, 
    hashValue : byte[], 
    contentLength : long, 
    compressionType : CompressionType
) : Stream

Parameters

Return Value

Type: System.IO.Stream

.NET Framework Security

See Also

Reference

TeamFoundationFileService Class

RetrieveFile Overload

Microsoft.TeamFoundation.Framework.Server Namespace