DataServiceConfiguration.SetEntitySetPageSize Method

Sets the maximum page size for an entity set resource.

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

Syntax

'Declaration
Public Sub SetEntitySetPageSize ( _
    name As String, _
    size As Integer _
)
'Usage
Dim instance As DataServiceConfiguration 
Dim name As String 
Dim size As Integer

instance.SetEntitySetPageSize(name, size)
public void SetEntitySetPageSize(
    string name,
    int size
)
public:
void SetEntitySetPageSize(
    String^ name, 
    int size
)
member SetEntitySetPageSize : 
        name:string * 
        size:int -> unit
public function SetEntitySetPageSize(
    name : String, 
    size : int
)

Parameters

  • name
    Type: System.String
    The name of entity set resource for which to set the page size.
  • size
    Type: System.Int32
    The page size for the entity set resource that is specified in name.

Remarks

When you specify a value of '*' for the name parameter, the page size value is set for all entity sets that do not have the page size explicitly set.

See Also

Reference

DataServiceConfiguration Class

System.Data.Services Namespace

Other Resources

Configuring the Data Service (WCF Data Services)