Share via


QueryHistoryParameters.MaxResults Property

Set this property to limit the number of results returned by the QueryHistory call.

By default, this property is set to Int32.MaxValue. QueryHistory pages results back from the server on demand. Therefore, limiting your own consumption of the IEnumerable is almost as effective from a performance perspective.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'Declaration
Public Property MaxResults As Integer
public int MaxResults { get; set; }
public:
property int MaxResults {
    int get ();
    void set (int value);
}
member MaxResults : int with get, set
function get MaxResults () : int 
function set MaxResults (value : int)

Property Value

Type: System.Int32
The property to limit the number of results returned by the QueryHistory call.

.NET Framework Security

See Also

Reference

QueryHistoryParameters Class

Microsoft.TeamFoundation.VersionControl.Client Namespace