다음을 통해 공유


CollectionCodeDomSerializer.SerializeCollection 메서드

정의

지정된 컬렉션을 serialize합니다.

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

매개 변수

manager
IDesignerSerializationManager

Serialization 중에 사용할 IDesignerSerializationManager 입니다.

targetExpression
CodeExpression

CodeExpression 컬렉션을 참조하는 입니다.

targetType
Type

컬렉션의 Type 입니다.

originalCollection
ICollection

serialize할 컬렉션입니다.

valuesToSerialize
ICollection

Serialize할 값입니다.

반환

Serialization 프로세스에 성공한 경우 serialize된 컬렉션이고, 그렇지 않은 경우 null입니다.

예외

manager, targetType, originalCollection 또는 valuesToSerializenull입니다.

설명

컬렉션을 참조하는 는 CodeExpression 일 수 있습니다 null.

적용 대상

추가 정보