Share via


DataServiceConfiguration.MaxResultsPerCollection Property

Get or sets the maximum number of items in each returned collection.

Namespace:  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Public Property MaxResultsPerCollection As Integer 
    Get 
    Set
'Usage
Dim instance As DataServiceConfiguration 
Dim value As Integer 

value = instance.MaxResultsPerCollection

instance.MaxResultsPerCollection = value
public int MaxResultsPerCollection { get; set; }
public:
virtual property int MaxResultsPerCollection {
    int get () sealed;
    void set (int value) sealed;
}
abstract MaxResultsPerCollection : int with get, set 
override MaxResultsPerCollection : int with get, set
final function get MaxResultsPerCollection () : int 
final function set MaxResultsPerCollection (value : int)

Property Value

Type: System.Int32
The maximum number of items.

Implements

IDataServiceConfiguration.MaxResultsPerCollection

Remarks

This maximum value also applies to nested collections.

See Also

Reference

DataServiceConfiguration Class

System.Data.Services Namespace

Other Resources

Configuring the Data Service (WCF Data Services)