ProxyDataContractResolver.TryResolveType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
During serialization, maps actual types to xsi:type information.
public override bool TryResolveType (Type type, Type declaredType, System.Runtime.Serialization.DataContractResolver knownTypeResolver, out System.Xml.XmlDictionaryString typeName, out System.Xml.XmlDictionaryString typeNamespace);
override this.TryResolveType : Type * Type * System.Runtime.Serialization.DataContractResolver * * -> bool
Parameters
- type
- Type
The actual type of the persistence-ignorant object.
- declaredType
- Type
The declared type.
- knownTypeResolver
- DataContractResolver
An instance of ProxyDataContractResolver.
- typeName
- XmlDictionaryString
When this method returns, contains a list of xsi:type declarations.
- typeNamespace
- XmlDictionaryString
When this method returns, contains a list of namespaces used.
Returns
true if the type was resolved; otherwise, false.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for