Sdílet prostřednictvím


CollectionCodeDomSerializer.SerializeCollection Metoda

Definice

Serializuje danou kolekci.

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

Parametry

manager
IDesignerSerializationManager

K IDesignerSerializationManager použití během serializace.

targetExpression
CodeExpression

Objekt CodeExpression , který odkazuje na kolekci.

targetType
Type

v Type kolekci.

originalCollection
ICollection

Kolekce, která se má serializovat.

valuesToSerialize
ICollection

Hodnoty k serializaci.

Návraty

Serializované kolekce pokud serializace proces byl úspěšný; v opačném případě . null

Výjimky

manager, targetType, originalCollectionnebo valuesToSerialize je null.

Poznámky

Hodnota CodeExpression , která odkazuje na kolekci, může být null.

Platí pro

Viz také