DataContractSerializerSettings DataContractSerializerSettings DataContractSerializerSettings DataContractSerializerSettings Class


指定資料合約序列化程式設定。Specifies data contract serializer settings.

public ref class DataContractSerializerSettings
public class DataContractSerializerSettings
type DataContractSerializerSettings = class
Public Class DataContractSerializerSettings


DataContractSerializerSettings() DataContractSerializerSettings() DataContractSerializerSettings() DataContractSerializerSettings()

初始化 DataContractSerializerSettings 類別的新執行個體。Initializes a new instance of the DataContractSerializerSettings class.


DataContractResolver DataContractResolver DataContractResolver DataContractResolver

取得或設定用於將 xsi:type 宣告動態對應至已知合約型別的元件。Gets or sets the component used to dynamically map xsi:type declarations to known contract types.

DataContractSurrogate DataContractSurrogate DataContractSurrogate DataContractSurrogate

取得或設定序列化代理。Gets or sets a serialization surrogate.

IgnoreExtensionDataObject IgnoreExtensionDataObject IgnoreExtensionDataObject IgnoreExtensionDataObject

取得或設定值,這個值會指定當類別序列化或還原序列化時,是否略過類別延伸所提供的資料。Gets or sets a value that specifies whether to ignore data supplied by an extension of the class when the class is being serialized or deserialized.

KnownTypes KnownTypes KnownTypes KnownTypes

取得或設定型別的集合,這些型別可能會存在於使用這個 DataContractSerializerSettings 執行個體所序列化的物件圖形中。Gets or sets a collection of types that may be present in the object graph serialized using this instance of the DataContractSerializerSettings.

MaxItemsInObjectGraph MaxItemsInObjectGraph MaxItemsInObjectGraph MaxItemsInObjectGraph

取得或設定物件圖形中要序列化或還原序列化的最大項目數。Gets or sets the maximum number of items in an object graph to serialize or deserialize.

PreserveObjectReferences PreserveObjectReferences PreserveObjectReferences PreserveObjectReferences

取得或設定值,這個值會指定是否使用非標準的 XML 建構來保留物件參考資料。Gets or sets a value that specifies whether to use non-standard XML constructs to preserve object reference data.

RootName RootName RootName RootName

取得或設定所選取物件的根名稱。Gets or sets the root name of the selected object.

RootNamespace RootNamespace RootNamespace RootNamespace

取得或設定指定物件的根命名空間。Gets or sets the root namespace for the specified object.

SerializeReadOnlyTypes SerializeReadOnlyTypes SerializeReadOnlyTypes SerializeReadOnlyTypes

取得或設定值,指定是否要序列化唯讀型別。Gets or sets a value that specifies whether to serialize read only types.


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)