共用方式為


TeamFoundationFileService.RetrieveFile 方法 (TeamFoundationRequestContext, Int32, Boolean, array<Byte[]%, Int64%, CompressionType%)

從存放區擷取 BLOB (二進位大型物件) 檔案

命名空間:  Microsoft.TeamFoundation.Framework.Server
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

'宣告
Public 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 Stream RetrieveFile(
    TeamFoundationRequestContext requestContext,
    int fileId,
    bool compressOutput,
    out byte[] hashValue,
    out long contentLength,
    out CompressionType compressionType
)

參數

傳回值

型別:System.IO.Stream

.NET Framework 安全性

請參閱

參考

TeamFoundationFileService 類別

RetrieveFile 多載

Microsoft.TeamFoundation.Framework.Server 命名空間