共用方式為


ProxyDataContractResolver.ResolveName 方法

定義

還原序列化期間,將任何 xsi:type 資訊對應到非持續性物件的實際類型。

public:
 override Type ^ ResolveName(System::String ^ typeName, System::String ^ typeNamespace, Type ^ declaredType, System::Runtime::Serialization::DataContractResolver ^ knownTypeResolver);
public override Type ResolveName (string typeName, string typeNamespace, Type declaredType, System.Runtime.Serialization.DataContractResolver knownTypeResolver);
override this.ResolveName : string * string * Type * System.Runtime.Serialization.DataContractResolver -> Type
Public Overrides Function ResolveName (typeName As String, typeNamespace As String, declaredType As Type, knownTypeResolver As DataContractResolver) As Type

參數

typeName
String

要對應的 xsi:type 資訊。

typeNamespace
String

xsi:type 的命名空間。

declaredType
Type

宣告的型別。

knownTypeResolver
DataContractResolver

ProxyDataContractResolver 的執行個體。

傳回

xsi:type 對應的類型;或者,若沒有找到符合 xsi:type 的已知類型,則為 null

備註

如需詳細資訊,請參閱: 使用POCO實體

適用於