Aracılığıyla paylaş


CollectionCodeDomSerializer.SerializeCollection Yöntem

Tanım

Verilen koleksiyonu serileştirir.

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

Parametreler

manager
IDesignerSerializationManager

IDesignerSerializationManager Serileştirme sırasında kullanılacak.

targetExpression
CodeExpression

Koleksiyona CodeExpression başvuran.

targetType
Type

Type Koleksiyonun.

originalCollection
ICollection

Serileştirecek koleksiyon.

valuesToSerialize
ICollection

Serileştirecek değerler.

Döndürülenler

Serileştirme işlemi başarılı olursa serileştirilmiş koleksiyon; aksi takdirde , null.

Özel durumlar

manager, targetType, originalCollectionveya valuesToSerialize şeklindedir null.

Açıklamalar

CodeExpression Koleksiyonuna nullbaşvuran olabilir.

Şunlara uygulanır

Ayrıca bkz.