IDataContractSurrogate Members

Provides the methods needed to substitute one type for another by the DataContractSerializer during serialization, deserialization, and export and import of XML schema documents (XSD).

The IDataContractSurrogate type exposes the following members.

Public method GetCustomDataToExport Overloaded. During schema export operations, inserts annotations into the schema for non-null return values.
Public method GetDataContractType During serialization, deserialization, and schema import and export, returns a data contract type that substitutes the specified type.
Public method GetDeserializedObject During deserialization, returns an object that is a substitute for the specified object.
Public method GetKnownCustomDataTypes Sets the collection of known types to use for serialization and deserialization of the custom data objects.
Public method GetObjectToSerialize During serialization, returns an object that substitutes the specified object.
Public method GetReferencedTypeOnImport During schema import, returns the type referenced by the schema.
Public method ProcessImportedType Processes the type that has been generated from the imported schema.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft