Metoda TeamFoundationFileService.RetrieveFile — (TeamFoundationRequestContext, Int32, Boolean, array<Byte %, Int64%, CompressionType%)
Pobiera plik z magazynu blob
Przestrzeń nazw: Microsoft.TeamFoundation.Framework.Server
Zestaw: Microsoft.TeamFoundation.Framework.Server (w Microsoft.TeamFoundation.Framework.Server.dll)
Składnia
'Deklaracja
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
)
Parametry
- requestContext
Typ: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- fileId
Typ: System.Int32
- compressOutput
Typ: System.Boolean
- hashValue
Typ: array<System.Byte[]%
- contentLength
Typ: System.Int64%
- compressionType
Typ: Microsoft.TeamFoundation.Framework.Server.CompressionType%
Wartość zwracana
Typ: System.IO.Stream
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Przy użyciu bibliotek z częściowo zaufanego kodu..