NetMsmqBinding.ReaderQuotas Propriedade

Definição

Obtém ou define o XmlDictionaryReaderQuotas que está associado a esta ligação.

public:
 property System::Xml::XmlDictionaryReaderQuotas ^ ReaderQuotas { System::Xml::XmlDictionaryReaderQuotas ^ get(); void set(System::Xml::XmlDictionaryReaderQuotas ^ value); };
public System.Xml.XmlDictionaryReaderQuotas ReaderQuotas { get; set; }
member this.ReaderQuotas : System.Xml.XmlDictionaryReaderQuotas with get, set
Public Property ReaderQuotas As XmlDictionaryReaderQuotas

Valor de Propriedade

O XmlDictionaryReaderQuotas associado a esta ligação.

Exceções

O valor é null.

Exemplos

O código seguinte mostra como definir a XmlDictionaryReaderQuotas propriedade.

NetMsmqBinding binding = new NetMsmqBinding();
XmlDictionaryReaderQuotas readerQuotas = new XmlDictionaryReaderQuotas();
readerQuotas.MaxArrayLength = 25 * 1024;
binding.ReaderQuotas = readerQuotas;

Observações

O XmlDictionaryReaderQuotas objeto define restrições sobre a complexidade das mensagens SOAP que podem ser processadas por endpoints configurados com um binding. Estas restrições incluem maxArrayLength, maxBytesPerRead, maxDepth, maxNameTableCharCount, e maxStringContentLength. Estes valores ajudam a prevenir ataques de negação de serviço. Para obter mais informações, veja XmlDictionaryReaderQuotas.

Aplica-se a