XmlDictionaryReaderQuotas.MaxNameTableCharCount 属性

定义

获取或设置表名称中允许的最大字符数。Gets or sets the maximum characters allowed in a table name.

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

属性值

Int32

表名称中允许的最大字符数。The maximum characters allowed in a table name. 默认值为 16384。The default is 16384.

例外

尝试 set 值,但此实例的配额值是只读的。Trying to set the value, but quota values are read-only for this instance.

尝试将值 set 为小于零。Trying to set the value to less than zero.

注解

此配额限制读取器的 NameTable 中原子化的字符串中的总字符数。This quota limits the total number of characters in strings that are atomized in the NameTable for the reader. 原子化字符串时,会将字符串插入 NameTable 且永远不会移除。When strings are atomized they are inserted into a NameTable and never removed. 这会导致在 NameTable 中累积大量字符数据。This can cause the buildup of large amounts of character data in a NameTable. 此配额对读取器的 NameTable 中可以缓冲的数据量设置限制。This quota places a limit on how much data can be buffered in the reader's NameTable.

适用于