CodeDomComponentSerializationService Class
Serializes a set of components into a serialization store.
System.ComponentModel.Design.Serialization::ComponentSerializationService
System.ComponentModel.Design.Serialization::CodeDomComponentSerializationService
Assembly: System.Design (in System.Design.dll)
The CodeDomComponentSerializationService type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CodeDomComponentSerializationService() | Initializes a new instance of the CodeDomComponentSerializationService class. |
![]() | CodeDomComponentSerializationService(IServiceProvider) | Initializes a new instance of the CodeDomComponentSerializationService class using the given service provider to resolve services. |
| Name | Description | |
|---|---|---|
![]() | CreateStore | Creates a new SerializationStore. (Overrides ComponentSerializationService::CreateStore().) |
![]() | Deserialize(SerializationStore) | Deserializes the given store to produce a collection of objects. (Overrides ComponentSerializationService::Deserialize(SerializationStore).) |
![]() | Deserialize(SerializationStore, IContainer) | Deserializes the given store and populates the given IContainer with deserialized IComponent objects. (Overrides ComponentSerializationService::Deserialize(SerializationStore, IContainer).) |
![]() | DeserializeTo(SerializationStore, IContainer) | Deserializes the given SerializationStore to the given container. (Inherited from ComponentSerializationService.) |
![]() | DeserializeTo(SerializationStore, IContainer, Boolean) | Deserializes the given SerializationStore to the given container, optionally validating recycled types. (Inherited from ComponentSerializationService.) |
![]() | DeserializeTo(SerializationStore, IContainer, Boolean, Boolean) | Deserializes the given SerializationStore to the given container, optionally applying default property values. (Overrides ComponentSerializationService::DeserializeTo(SerializationStore, IContainer, Boolean, Boolean).) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | LoadStore | Loads a SerializationStore from the given stream. (Overrides ComponentSerializationService::LoadStore(Stream).) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Serialize | Serializes the given object to the given SerializationStore. (Overrides ComponentSerializationService::Serialize(SerializationStore, Object).) |
![]() | SerializeAbsolute | Serializes the given object, accounting for default property values. (Overrides ComponentSerializationService::SerializeAbsolute(SerializationStore, Object).) |
![]() | SerializeMember | Serializes the given member on the given object. (Overrides ComponentSerializationService::SerializeMember(SerializationStore, Object, MemberDescriptor).) |
![]() | SerializeMemberAbsolute | Serializes the given member on the given object, but also serializes the member if it contains the default property value. (Overrides ComponentSerializationService::SerializeMemberAbsolute(SerializationStore, Object, MemberDescriptor).) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The CodeDomComponentSerializationService class serializes a set of components or serializable objects into a serialization store. The store can then be deserialized at a later time. The CodeDomComponentSerializationService class differs from other serialization schemes in that the serialization format is opaque, and it allows for partial serialization of objects. For example, you can choose to serialize only selected properties for an object.
The base class, ComponentSerializationService, replaces the IDesignerSerializationService interface from the .NET Framework version 1.0, although the latter is retained for backward compatibility. The CodeDomComponentSerializationService class does not implement the IDesignerSerializationService interface, but if you query for IDesignerSerializationService, the CodeDomDesignerLoader provides a bridge implementation to ensure backward compatibility.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
