Поделиться через


DataContractSerializerElement.MaxItemsInObjectGraph Свойство

Определение

Возвращает или задает максимальное количество элементов для сериализации или десериализации.

public:
 property int MaxItemsInObjectGraph { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxItemsInObjectGraph", DefaultValue=65536)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int MaxItemsInObjectGraph { get; set; }
[System.Configuration.IntegerValidator(MinValue=0)]
[System.Configuration.ConfigurationProperty("maxItemsInObjectGraph", DefaultValue=2147483647)]
public int MaxItemsInObjectGraph { get; set; }
[<System.Configuration.ConfigurationProperty("maxItemsInObjectGraph", DefaultValue=65536)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.MaxItemsInObjectGraph : int with get, set
[<System.Configuration.IntegerValidator(MinValue=0)>]
[<System.Configuration.ConfigurationProperty("maxItemsInObjectGraph", DefaultValue=2147483647)>]
member this.MaxItemsInObjectGraph : int with get, set
Public Property MaxItemsInObjectGraph As Integer

Значение свойства

Максимальное количество элементов для сериализации или десериализации. Значение по умолчанию — 65536.

Атрибуты

Применяется к