ProxyDataContractResolver ProxyDataContractResolver ProxyDataContractResolver ProxyDataContractResolver Class

定義

針對為了非持續性資料類別所建立的 Proxy 類型,此類別可協助將其解析為非持續性物件的實際類型。This class helps resolve proxy types that were created for persistence-ignorant data classes to the actual types of persistence-ignorant objects.

public ref class ProxyDataContractResolver : System::Runtime::Serialization::DataContractResolver
public class ProxyDataContractResolver : System.Runtime.Serialization.DataContractResolver
type ProxyDataContractResolver = class
    inherit DataContractResolver
Public Class ProxyDataContractResolver
Inherits DataContractResolver
繼承
ProxyDataContractResolverProxyDataContractResolverProxyDataContractResolverProxyDataContractResolver

備註

ProxyDataContractResolver類別會搭配DataContractSerializerThe ProxyDataContractResolver class is used with the DataContractSerializer.

建構函式

ProxyDataContractResolver() ProxyDataContractResolver() ProxyDataContractResolver() ProxyDataContractResolver()

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

方法

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 的淺層複製。Creates a shallow copy of the current Object.

(Inherited from Object)
ResolveName(String, String, Type, DataContractResolver) ResolveName(String, String, Type, DataContractResolver) ResolveName(String, String, Type, DataContractResolver) ResolveName(String, String, Type, DataContractResolver)

還原序列化期間,將任何 xsi:type 資訊對應到非持續性物件的實際類型。During deserialization, maps any xsi:type information to the actual type of the persistence-ignorant object.

ToString() ToString() ToString() ToString()

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

(Inherited from Object)
TryResolveType(Type, Type, DataContractResolver, XmlDictionaryString, XmlDictionaryString) TryResolveType(Type, Type, DataContractResolver, XmlDictionaryString, XmlDictionaryString) TryResolveType(Type, Type, DataContractResolver, XmlDictionaryString, XmlDictionaryString) TryResolveType(Type, Type, DataContractResolver, XmlDictionaryString, XmlDictionaryString)

在還原序列化期間,將實際型別對應至 xsi:type 資訊。During serialization, maps actual types to xsi:type information.

適用於