TeamFoundationFileService.RetrieveNamedFile Method
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function RetrieveNamedFile ( _
requestContext As TeamFoundationRequestContext, _
ownerId As OwnerId, _
fileName As String, _
compressOutput As Boolean, _
<OutAttribute> ByRef hashValue As Byte(), _
<OutAttribute> ByRef contentLength As Long, _
<OutAttribute> ByRef compressionType As CompressionType _
) As Stream
public Stream RetrieveNamedFile(
TeamFoundationRequestContext requestContext,
OwnerId ownerId,
string fileName,
bool compressOutput,
out byte[] hashValue,
out long contentLength,
out CompressionType compressionType
)
public:
Stream^ RetrieveNamedFile(
TeamFoundationRequestContext^ requestContext,
OwnerId ownerId,
String^ fileName,
bool compressOutput,
[OutAttribute] array<unsigned char>^% hashValue,
[OutAttribute] long long% contentLength,
[OutAttribute] CompressionType% compressionType
)
member RetrieveNamedFile :
requestContext:TeamFoundationRequestContext *
ownerId:OwnerId *
fileName:string *
compressOutput:bool *
hashValue:byte[] byref *
contentLength:int64 byref *
compressionType:CompressionType byref -> Stream
public function RetrieveNamedFile(
requestContext : TeamFoundationRequestContext,
ownerId : OwnerId,
fileName : String,
compressOutput : boolean,
hashValue : byte[],
contentLength : long,
compressionType : CompressionType
) : Stream
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- ownerId
Type: Microsoft.TeamFoundation.Framework.Server.OwnerId
- fileName
Type: System.String
- compressOutput
Type: System.Boolean
- hashValue
Type: array<System.Byte[]%
- contentLength
Type: System.Int64%
- compressionType
Type: Microsoft.TeamFoundation.Framework.Server.CompressionType%
Return Value
Type: System.IO.Stream
Returns Stream.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.