CallbackBehaviorAttribute.MaxItemsInObjectGraph 屬性

定義

取得或設定已序列化之物件中允許的項目數目上限。

public:
 property int MaxItemsInObjectGraph { int get(); void set(int value); };
public int MaxItemsInObjectGraph { get; set; }
member this.MaxItemsInObjectGraph : int with get, set
Public Property MaxItemsInObjectGraph As Integer

屬性值

物件中允許的項目數目上限。 預設值為 Int32.MaxValue

備註

使用 MaxItemsInObjectGraph 屬性,即可設定物件圖形中已序列化項目的數目限制。 您也可以使用< dataContractSerializer >元素,在用戶端應用程式組態檔中設定此值。

適用於