Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Queries the file contents for the given Item.
Namespace: Microsoft.TeamFoundation.VersionControl.Server
Assembly: Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
Public Function QueryFileContents ( _
requestContext As TeamFoundationRequestContext, _
serverItem As Item _
) As TeamFoundationDataReader
public TeamFoundationDataReader QueryFileContents(
TeamFoundationRequestContext requestContext,
Item serverItem
)
public:
TeamFoundationDataReader^ QueryFileContents(
TeamFoundationRequestContext^ requestContext,
Item^ serverItem
)
member QueryFileContents :
requestContext:TeamFoundationRequestContext *
serverItem:Item -> TeamFoundationDataReader
public function QueryFileContents(
requestContext : TeamFoundationRequestContext,
serverItem : Item
) : TeamFoundationDataReader
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
serverItem
Type: Microsoft.TeamFoundation.VersionControl.Server.ItemThe item to retrieve file contents for.
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
TeamFoundationDataReader object that has results in the following order: Stream - The content stream. Int32 - The hash value for the content. Int32 - The length of the content. CompressionType - The compression type of the content.
.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.