共用方式為


DataServiceConfiguration.SetEntitySetPageSize 方法

設定實體集資源的最大頁面大小。

命名空間:  System.Data.Services
組件:  Microsoft.Data.Services (在 Microsoft.Data.Services.dll 中)

語法

'宣告
Public Sub SetEntitySetPageSize ( _
    name As String, _
    size As Integer _
)
'用途
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
)

參數

  • name
    型別:System.String
    要為其設定頁面大小的實體集資源名稱。
  • size
    型別:System.Int32
    name 中指定之實體集資源的頁面大小。

備註

當您為 name 參數指定 '*' 值時,將會針對未明確設定頁面大小的所有實體集設定頁面大小值。

請參閱

參考

DataServiceConfiguration 類別

System.Data.Services 命名空間

其他資源

設定資料服務 (WCF Data Services)