Partager via


CollectionCodeDomSerializer.SerializeCollection Méthode

Définition

Sérialise la collection donnée.

protected:
 virtual System::Object ^ SerializeCollection(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::CodeDom::CodeExpression ^ targetExpression, Type ^ targetType, System::Collections::ICollection ^ originalCollection, System::Collections::ICollection ^ valuesToSerialize);
protected virtual object SerializeCollection (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeExpression targetExpression, Type targetType, System.Collections.ICollection originalCollection, System.Collections.ICollection valuesToSerialize);
protected virtual object? SerializeCollection (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeExpression? targetExpression, Type targetType, System.Collections.ICollection originalCollection, System.Collections.ICollection valuesToSerialize);
abstract member SerializeCollection : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * System.CodeDom.CodeExpression * Type * System.Collections.ICollection * System.Collections.ICollection -> obj
override this.SerializeCollection : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * System.CodeDom.CodeExpression * Type * System.Collections.ICollection * System.Collections.ICollection -> obj
Protected Overridable Function SerializeCollection (manager As IDesignerSerializationManager, targetExpression As CodeExpression, targetType As Type, originalCollection As ICollection, valuesToSerialize As ICollection) As Object

Paramètres

manager
IDesignerSerializationManager

IDesignerSerializationManager à utiliser pendant la sérialisation.

targetExpression
CodeExpression

CodeExpression qui fait référence à la collection.

targetType
Type

Type de la collection.

originalCollection
ICollection

Collection à sérialiser.

valuesToSerialize
ICollection

Valeurs à sérialiser.

Retours

Collection sérialisée si le processus de sérialisation a réussi ; sinon, null.

Exceptions

manager, targetType, originalCollection ou valuesToSerialize a la valeur null.

Remarques

Le CodeExpression qui fait référence à la collection peut être null.

S’applique à

Voir aussi