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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。