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
)
參數
- requestContext
型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- fileId
型別:System.Int32
- compressOutput
型別:System.Boolean
- hashValue
型別:array<System.Byte[]%
- contentLength
型別:System.Int64%
- compressionType
型別:Microsoft.TeamFoundation.Framework.Server.CompressionType%
傳回值
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。