CodeDomComponentSerializationService Class

CodeDomComponentSerializationService Class

 

Serializes a set of components into a serialization store.

Namespace:   System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)

System.Object
  System.ComponentModel.Design.Serialization.ComponentSerializationService
    System.ComponentModel.Design.Serialization.CodeDomComponentSerializationService

public sealed class CodeDomComponentSerializationService : ComponentSerializationService

NameDescription
System_CAPS_pubmethodCodeDomComponentSerializationService()

Initializes a new instance of the CodeDomComponentSerializationService class.

System_CAPS_pubmethodCodeDomComponentSerializationService(IServiceProvider)

Initializes a new instance of the CodeDomComponentSerializationService class using the given service provider to resolve services.

NameDescription
System_CAPS_pubmethodCreateStore()
System_CAPS_pubmethodDeserialize(SerializationStore)

Deserializes the given store to produce a collection of objects.(Overrides ComponentSerializationService.Deserialize(SerializationStore).)

System_CAPS_pubmethodDeserialize(SerializationStore, IContainer)

Deserializes the given store and populates the given IContainer with deserialized IComponent objects.(Overrides ComponentSerializationService.Deserialize(SerializationStore, IContainer).)

System_CAPS_pubmethodDeserializeTo(SerializationStore, IContainer)

Deserializes the given SerializationStore to the given container.(Inherited from ComponentSerializationService.)

System_CAPS_pubmethodDeserializeTo(SerializationStore, IContainer, Boolean)

Deserializes the given SerializationStore to the given container, optionally validating recycled types.(Inherited from ComponentSerializationService.)

System_CAPS_pubmethodDeserializeTo(SerializationStore, IContainer, Boolean, Boolean)

Deserializes the given SerializationStore to the given container, optionally applying default property values.(Overrides ComponentSerializationService.DeserializeTo(SerializationStore, IContainer, Boolean, Boolean).)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodLoadStore(Stream)

Loads a SerializationStore from the given stream.(Overrides ComponentSerializationService.LoadStore(Stream).)

System_CAPS_pubmethodSerialize(SerializationStore, Object)
System_CAPS_pubmethodSerializeAbsolute(SerializationStore, Object)

Serializes the given object, accounting for default property values.(Overrides ComponentSerializationService.SerializeAbsolute(SerializationStore, Object).)

System_CAPS_pubmethodSerializeMember(SerializationStore, Object, MemberDescriptor)
System_CAPS_pubmethodSerializeMemberAbsolute(SerializationStore, Object, MemberDescriptor)

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

System_CAPS_pubmethodToString()

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.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft