共用方式為


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

成員的選擇性集合。 可以為 null 參考 (在 Visual Basic 中為 Nothing) 或空集合。

傳回

CodeTypeDeclaration

CodeTypeDeclaration,定義指定的物件。

例外狀況

managerroot 包含 null 參考 (Nothing)。

root 無法轉換成 Activity

適用於