System.Runtime.Serialization
TOC
Collapse the table of content
Expand the table of content

System.Runtime.Serialization Namespace

 

The System.Runtime.Serialization namespace contains classes that can be used for serializing and deserializing objects. Serialization is the process of converting an object or a graph of objects into a linear sequence of bytes for either storage or transmission to another location. Deserialization is the process of taking in stored information and recreating objects from it.

ClassDescription
System_CAPS_pubclassCollectionDataContractAttribute

When applied to a collection type, enables custom specification of the collection item elements. This attribute can be applied only to types that are recognized by the DataContractSerializer as valid, serializable collections.

System_CAPS_pubclassContractNamespaceAttribute

Specifies the CLR namespace and XML namespace of the data contract.

System_CAPS_pubclassDataContractAttribute

Specifies that the type defines or implements a data contract and is serializable by a serializer, such as the DataContractSerializer. To make their type serializable, type authors must define a data contract for their type.

System_CAPS_pubclassDataContractResolver

Provides a mechanism for dynamically mapping types to and from xsi:type representations during serialization and deserialization.

System_CAPS_pubclassDataContractSerializer

Serializes and deserializes an instance of a type into an XML stream or document using a supplied data contract. This class cannot be inherited.

System_CAPS_pubclassDataContractSerializerSettings

Specifies data contract serializer settings.

System_CAPS_pubclassDataMemberAttribute

When applied to the member of a type, specifies that the member is part of a data contract and is serializable by the DataContractSerializer.

System_CAPS_pubclassDateTimeFormat

Specifies date-time format options.

System_CAPS_pubclassEnumMemberAttribute

Specifies that the field is an enumeration member and should be serialized.

System_CAPS_pubclassExportOptions

Represents the options that can be set for an XsdDataContractExporter.

System_CAPS_pubclassExtensionDataObject

Stores data from a versioned data contract that has been extended by adding new members.

System_CAPS_pubclassFormatter

Provides base functionality for the common language runtime serialization formatters.

System_CAPS_pubclassFormatterConverter

Represents a base implementation of the IFormatterConverter interface that uses the Convert class and the IConvertible interface.

System_CAPS_pubclassFormatterServices

Provides static methods to aid with the implementation of a Formatter for serialization. This class cannot be inherited.

System_CAPS_pubclassIgnoreDataMemberAttribute

When applied to the member of a type, specifies that the member is not part of a data contract and is not serialized.

System_CAPS_pubclassImportOptions

Represents the options that can be set on an XsdDataContractImporter.

System_CAPS_pubclassInvalidDataContractException

The exception that is thrown when the DataContractSerializer or NetDataContractSerializer encounters an invalid data contract during serialization and deserialization.

System_CAPS_pubclassKnownTypeAttribute

Specifies types that should be recognized by the DataContractSerializer when serializing or deserializing a given type.

System_CAPS_pubclassNetDataContractSerializer

Serializes and deserializes an instance of a type into XML stream or document using the supplied .NET Framework types. This class cannot be inherited.

System_CAPS_pubclassObjectIDGenerator

Generates IDs for objects.

System_CAPS_pubclassObjectManager

Keeps track of objects as they are deserialized.

System_CAPS_pubclassOnDeserializedAttribute

When applied to a method, specifies that the method is called immediately after deserialization of an object in an object graph. The order of deserialization relative to other objects in the graph is non-deterministic.

System_CAPS_pubclassOnDeserializingAttribute

When applied to a method, specifies that the method is called during deserialization of an object in an object graph. The order of deserialization relative to other objects in the graph is non-deterministic.

System_CAPS_pubclassOnSerializedAttribute

When applied to a method, specifies that the method is called after serialization of an object in an object graph. The order of serialization relative to other objects in the graph is non-deterministic.

System_CAPS_pubclassOnSerializingAttribute

When applied to a method, specifies that the method is during serialization of an object in an object graph. The order of serialization relative to other objects in the graph is non-deterministic.

System_CAPS_pubclassOptionalFieldAttribute

Specifies that a field can be missing from a serialization stream so that the BinaryFormatter and the SoapFormatter does not throw an exception.

System_CAPS_pubclassSafeSerializationEventArgs

Provides data for the SerializeObjectState event.

System_CAPS_pubclassSerializationBinder

Allows users to control class loading and mandate what class to load.

System_CAPS_pubclassSerializationException

The exception thrown when an error occurs during serialization or deserialization.

System_CAPS_pubclassSerializationInfo

Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.

System_CAPS_pubclassSerializationInfoEnumerator

Provides a formatter-friendly mechanism for parsing the data in SerializationInfo. This class cannot be inherited.

System_CAPS_pubclassSerializationObjectManager

Manages serialization processes at run time. This class cannot be inherited.

System_CAPS_pubclassSurrogateSelector

Assists formatters in selection of the serialization surrogate to delegate the serialization or deserialization process to.

System_CAPS_pubclassXmlObjectSerializer

Provides the base class used to serialize objects as XML streams or documents. This class is abstract.

System_CAPS_pubclassXmlSerializableServices

Contains methods for reading and writing XML.

System_CAPS_pubclassXPathQueryGenerator

When given a class representing a data contract, and metadata representing a member of the contract, produces an XPath query for the member.

System_CAPS_pubclassXsdDataContractExporter

Allows the transformation of a set of .NET Framework types that are used in data contracts into an XML schema file (.xsd).

System_CAPS_pubclassXsdDataContractImporter

Allows the transformation of a set of XML schema files (.xsd) into common language runtime (CLR) types.

StructureDescription
System_CAPS_pubstructureSerializationEntry

Holds the value, Type, and name of a serialized object.

System_CAPS_pubstructureStreamingContext

Describes the source and destination of a given serialized stream, and provides an additional caller-defined context.

InterfaceDescription
System_CAPS_pubinterfaceIDataContractSurrogate

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).

System_CAPS_pubinterfaceIDeserializationCallback

Indicates that a class is to be notified when deserialization of the entire object graph has been completed. Note that this interface is not called when deserializing with the XmlSerializer (System.Xml.Serialization.XmlSerializer).

System_CAPS_pubinterfaceIExtensibleDataObject

Provides a data structure to store extra data encountered by the XmlObjectSerializer during deserialization of a type marked with the DataContractAttribute attribute.

System_CAPS_pubinterfaceIFormatter

Provides functionality for formatting serialized objects.

System_CAPS_pubinterfaceIFormatterConverter

Provides the connection between an instance of SerializationInfo and the formatter-provided class best suited to parse the data inside the SerializationInfo.

System_CAPS_pubinterfaceIObjectReference

Indicates that the current interface implementer is a reference to another object.

System_CAPS_pubinterfaceISafeSerializationData

Enables serialization of custom exception data in security-transparent code.

System_CAPS_pubinterfaceISerializable

Allows an object to control its own serialization and deserialization.

System_CAPS_pubinterfaceISerializationSurrogate

Implements a serialization surrogate selector that allows one object to perform serialization and deserialization of another.

System_CAPS_pubinterfaceISurrogateSelector

Indicates a serialization surrogate selector class.

EnumerationDescription
System_CAPS_pubenumEmitTypeInformation

Specifies how often to emit type information.

System_CAPS_pubenumStreamingContextStates

Defines a set of flags that specifies the source or destination context for the stream during serialization.

The ISerializable interface provides a way for classes to control their own serialization behavior. Classes in the System.Runtime.Serialization.Formatters namespace control the actual formatting of various data types encapsulated in the serialized objects.

Formatters that serialize and deserialize objects to and from a particular format can be found in the System.Runtime.Serialization.Formatters namespace.

Return to top
Show:
© 2016 Microsoft