System.ComponentModel.Design.Serialization.IDesignerSerializationService.Serialize Method

Serializes the specified collection of objects and stores them in a serialization data object.

Syntax

public object Serialize (ICollection objects)

Parameters

objects
A collection of objects to serialize.

Returns

An object that contains the serialized state of the specified collection of objects.

Remarks

The returned object fully supports run-time serialization.

The object returned from this method contains live references to objects in the collection. This object can then be passed to any run-time serialization mechanism. The object itself serializes components the same way designers write source for them, by storing their state, property by property.

Requirements

Namespace: System.ComponentModel.Design.Serialization
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0