XmlDictionaryReaderQuotas 類別

定義

包含 XmlDictionaryReaders 的可設定配額值。Contains configurable quota values for XmlDictionaryReaders.

public ref class XmlDictionaryReaderQuotas sealed
public sealed class XmlDictionaryReaderQuotas
type XmlDictionaryReaderQuotas = class
Public NotInheritable Class XmlDictionaryReaderQuotas
繼承
XmlDictionaryReaderQuotas

備註

XmlDictionary 序列化和還原序列化 SOAP 訊息時,WCF 會使用實例。XmlDictionary instances are used by WCF when serializing and deserializing SOAP messages. XmlDictionary包含字串/值組,用來減少 SOAP 訊息的大小。The XmlDictionary 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. XmlDictionaryReaderQuotas 是包含類別使用之配額數目的類別 XmlDictionaryReaderXmlDictionaryReaderQuotas is a class that contains a number of quotas used by the XmlDictionaryReader class. 字典讀取器最重要的安全性功能是配額。The most important security feature of the dictionary readers is quotas. 字典讀取器處理站方法必須指定有配額執行個體。A quotas instance must be given to the dictionary reader factory methods. 無參數的函式會建立「安全」預設值 (與) 的編碼預設值相同,而且類別具有靜態屬性,可 Max 用於建立沒有配額的讀取器。The parameterless constructor creates "secure" defaults (same as encoded defaults), and the class has a static Max property for creating a reader without quotas.

建構函式

XmlDictionaryReaderQuotas()

建立這個類別的新執行個體。Creates a new instance of this class.

屬性

Max

取得這個類別的執行個體,且其所有屬性都設定為最大值。Gets an instance of this class with all properties set to maximum values.

MaxArrayLength

取得或設定允許的陣列長度上限。Gets or sets the maximum allowed array length.

MaxBytesPerRead

取得或設定允許每個讀取動作傳回的位元組上限。Gets or sets the maximum allowed bytes returned for each read.

MaxDepth

取得或設定巢狀節點深度上限。Gets or sets the maximum nested node depth.

MaxNameTableCharCount

取得或設定資料表名稱允許的字元數目上限。Gets or sets the maximum characters allowed in a table name.

MaxStringContentLength

取得或設定讀取器傳回的字串長度上限。Gets or sets the maximum string length returned by the reader.

ModifiedQuotas

取得 XmlDictionaryReaderQuotas 的已修改配額。Gets the modified quotas for the XmlDictionaryReaderQuotas.

方法

CopyTo(XmlDictionaryReaderQuotas)

根據傳入之配額執行個體中的值,設定這個執行個體上的屬性。Sets the properties on a passed-in quotas instance, based on the values in this instance.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於