ComponentSerializationService.Deserialize Method (SerializationStore, IContainer)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Deserializes the given store and populates the given IContainer with deserialized IComponent objects.

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

public abstract ICollection Deserialize(
	SerializationStore store,
	IContainer container
)

Parameters

store
Type: System.ComponentModel.Design.Serialization.SerializationStore

The SerializationStore to deserialize.

container
Type: System.ComponentModel.IContainer

The IContainer to which IComponent objects will be added.

Return Value

Type: System.Collections.ICollection

A collection of objects created according to the stored state.

Exception Condition
ArgumentNullException

store or container is null.

InvalidOperationException

store does not contain data in a format the serialization container can process.

This method deserializes store to produce a collection of objects contained within it. Objects are deserialized in the same order in which they were serialized.

Created objects that implement IComponent are added to container.

.NET Framework
Available since 2.0
Return to top
Show: