TeamFoundationVersionControlService.QueryFileContents Method

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

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

See Also

Reference

TeamFoundationVersionControlService Class

Microsoft.TeamFoundation.VersionControl.Server Namespace