IDesignerSerializationService.Serialize(ICollection) Method

Definition

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

C#
public object Serialize(System.Collections.ICollection objects);

Parameters

objects
ICollection

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.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1