Compartir a través de


CollectionCodeDomSerializer.SerializeCollection Método

Definición

Serializa la colección especificada.

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

Parámetros

manager
IDesignerSerializationManager

IDesignerSerializationManager que se va a usar durante la serialización.

targetExpression
CodeExpression

que CodeExpression hace referencia a la colección.

targetType
Type

Type de la colección.

originalCollection
ICollection

Colección que se va a serializar.

valuesToSerialize
ICollection

Valores que se van a serializar.

Devoluciones

Colección serializada si el proceso de serialización se realizó correctamente; de lo contrario, null.

Excepciones

manager, targetType, originalCollection o valuesToSerialize es null.

Comentarios

Que CodeExpression hace referencia a la colección puede ser null.

Se aplica a

Consulte también