TeamFoundationFileService.RetrieveFile 方法 (TeamFoundationRequestContext, Int32, CompressionType%)
从blob存储中检索文件
命名空间: Microsoft.TeamFoundation.Framework.Server
程序集: Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)
语法
声明
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
)
参数
- requestContext
类型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
用户/系统的请求
- fileId
类型:System.Int32
文件标识符
- compressionType
类型:Microsoft.TeamFoundation.Framework.Server.CompressionType%
压缩类型(GZip/任何内容)
返回值
类型:System.IO.Stream
表示文件的流请求
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。