System.Runtime.Serialization 4.0.0.0 System.Object

instances are used by WCF when serializing and deserializing SOAP messages. The contains string/value pairs which are used to decrease the size of the SOAP message. When serializing a message the value is written in place of the string. When deserializing the message the value is read but the string is written to the message object. is a class that contains a number of quotas used by the class. The most important security feature of the dictionary readers is quotas. A quotas instance must be given to the dictionary reader factory methods. The default constructor creates "secure" defaults (same as encoded defaults), and the class has a static Max property for creating a reader without quotas.

Contains configurable quota values for XmlDictionaryReaders.

- Constructor
  4.0.0.0

  This constructor initializes the properties to "secure" defaults:

  MaxDepth = 32;

  MaxStringContentLength = 8192;

  MaxArrayLength = 16384;

  MaxBytesPerRead = 4096;

  MaxNameTableCharCount = 16384.

  Creates a new instance of this class.

- Method
  4.0.0.0
  System.Void `` To be added. To be added.

  Sets the properties on a passed-in quotas instance, based on the values in this instance.

- Property
  4.0.0.0
  System.Xml.XmlDictionaryReaderQuotas To be added.

  The instance returned is read-only. Use the property to create a reader without quotas.

  Gets an instance of this class with all properties set to maximum values.

- Property
  4.0.0.0
  System.Int32 To be added.

  This quota governs the maximum array length that is created and returned by various API calls. It affects special array APIs as well as byte arrays returned from ReadContentAsBase64(). This limit does not affect the ReadContentAsBase64() override that takes an array to be populated with data.

  Note that this property value applies to every step of message processing. This includes some steps that can expand the size of a message or message part. In particular, encryption can dramatically increase the size of a message. When setting this value, you must take this into account.

  Instances created with the public constructor have properties that can be set.

  Gets and sets the maximum allowed array length.

- Property
  4.0.0.0
  System.Int32 To be added.

  This quota limits the number of bytes that can be consumed by the reader during a single call to Read().

  This quota is an approximation, because transformations in the encoding layer happen before this quota is applied. This quota is closely tied to the number of bytes received on the wire at the transport level, but its purpose is to control the quantity of data we receive for each read. In practice, it is used to limit the size of start tags. Because the entire start tag must be buffered to be processed (attributes uniqueness must be verified), the size must be limited to mitigate DOS attacks.

  Instances created with the public constructor have properties that can be set.

  Gets and sets the maximum allowed bytes returned for each read.

- Property
  4.0.0.0
  System.Int32 To be added.

  This quota sets a limit on the nested node depth for the XML.

  Gets and sets the maximum nested node depth.

- Property
  4.0.0.0
  System.Int32 To be added.

  This quota limits the total number of characters in strings that are atomized in the NameTable for the reader. When strings are atomized they are inserted into a NameTable and never removed. This can cause the buildup of large amounts of character data in a NameTable. This quota places a limit on how much data can be buffered in the reader's NameTable.

  Gets and sets the maximum characters allowed in a table name.

- Property
  4.0.0.0
  System.Int32 To be added.

  This quota limits the length of strings that are created and returned by various APIs. When calling Read() and checking the Value property, the reader chunks string values into manageable pieces (when in streaming mode). However, calling ReadContentAsString() concatenates all these pieces and return one large string. In the binary format, if the value of an element node is a sequence of dictionary string IDs then the values of those strings are concatenated. This can be an extremely large expansion and is mitigated by this limit.

  Gets and sets the maximum string length returned by the reader.