Compartilhar via


CollectionCodeDomSerializer.SerializeCollection Método

Definição

Serializa a coleção 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

O IDesignerSerializationManager a ser usado durante a serialização.

targetExpression
CodeExpression

O CodeExpression que se refere à coleção.

targetType
Type

O Type da coleção.

originalCollection
ICollection

A coleção para serializar.

valuesToSerialize
ICollection

Os valores para serializar.

Retornos

Coleção serializada se o processo de serialização foi bem-sucedido; caso contrário, null.

Exceções

manager, targetType, originalCollection ou valuesToSerialize é null.

Comentários

O CodeExpression que se refere à coleção pode ser null.

Aplica-se a

Confira também