ISerializationSurrogateProvider2 Interface
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.
Provides the methods needed to substitute one type for another by DataContractSerializer during export and import of XML schema documents (XSD). This interface builds upon ISerializationSurrogateProvider.
public interface class ISerializationSurrogateProvider2 : System::Runtime::Serialization::ISerializationSurrogateProvider
public interface ISerializationSurrogateProvider2 : System.Runtime.Serialization.ISerializationSurrogateProvider
type ISerializationSurrogateProvider2 = interface
interface ISerializationSurrogateProvider
Public Interface ISerializationSurrogateProvider2
Implements ISerializationSurrogateProvider
- Implements
Remarks
Together with ISerializationCodeDomSurrogateProvider
, these interfaces replace the IDataContractSurrogate
interface from .NET Framework 4.8.
Methods
GetCustomDataToExport(MemberInfo, Type) |
During schema export operations, inserts annotations into the schema for non- |
GetCustomDataToExport(Type, Type) |
During schema export operations, inserts annotations into the schema for non- |
GetDeserializedObject(Object, Type) |
During deserialization, returns an object that is a substitute for the specified object. (Inherited from ISerializationSurrogateProvider) |
GetKnownCustomDataTypes(Collection<Type>) |
Sets the collection of known types to use for serialization and deserialization of the custom data objects. |
GetObjectToSerialize(Object, Type) |
During serialization, returns an object that substitutes the specified object. (Inherited from ISerializationSurrogateProvider) |
GetReferencedTypeOnImport(String, String, Object) |
During schema import, returns the type referenced by the schema. |
GetSurrogateType(Type) |
During serialization, deserialization, and schema import and export, returns a data contract type that substitutes the specified type. (Inherited from ISerializationSurrogateProvider) |