This documentation is archived and is not being maintained.

IDataContractSurrogate Methods

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.