ActivityTypeCodeDomSerializer.Serialize 方法

定义

通过创建定义指定对象的新类型声明,将该对象序列化。

public:
 override System::CodeDom::CodeTypeDeclaration ^ Serialize(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::Object ^ root, System::Collections::ICollection ^ members);
public override System.CodeDom.CodeTypeDeclaration Serialize (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object root, System.Collections.ICollection members);
override this.Serialize : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * obj * System.Collections.ICollection -> System.CodeDom.CodeTypeDeclaration
Public Overrides Function Serialize (manager As IDesignerSerializationManager, root As Object, members As ICollection) As CodeTypeDeclaration

参数

manager
IDesignerSerializationManager

用于序列化的序列化管理器。

root
Object

要序列化的 Object

members
ICollection

可选的成员集合。 可以为空引用(在 Visual Basic 中为 Nothing)或为空集合。

返回

CodeTypeDeclaration

定义指定对象的 CodeTypeDeclaration

例外

managerroot 包含空引用 (Nothing)。

root 无法转换为 Activity

适用于