XdmReaderSettings.MaxCharactersInDocument PropertyXdmReaderSettings.MaxCharactersInDocument PropertyXdmReaderSettings::MaxCharactersInDocument Property

Gets or sets a value indicating the maximum allowable number of characters in an XML document. A zero (0) value means no limits on the size of the XML document. A non-zero value specifies the maximum size, in characters.

Syntax

Public Property MaxCharactersInDocument As Long
        Get
        Set(ByVal value As Long)
public long MaxCharactersInDocument { get; set; }
public:
property long MaxCharactersInDocument {
    long get();
    void set(long value);
}
 

Property Value

Type: System.Int64System.Int64System::Int64

The maximum allowable number of characters in an XML document. The default is 0.

Remarks

This property allows you to mitigate denial of service attacks where the attacker submits extremely large XML document. By limiting the size of a document, you can detect the attack and recover reliably.