共用方式為


CodeDomSerializer.SerializeEvents 方法

定義

序列化指定物件的所有事件。

protected:
 void SerializeEvents(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::CodeDom::CodeStatementCollection ^ statements, System::Object ^ value, cli::array <Attribute ^> ^ filter);
protected void SerializeEvents (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeStatementCollection statements, object value, Attribute[] filter);
member this.SerializeEvents : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * System.CodeDom.CodeStatementCollection * obj * Attribute[] -> unit
Protected Sub SerializeEvents (manager As IDesignerSerializationManager, statements As CodeStatementCollection, value As Object, filter As Attribute())

參數

manager
IDesignerSerializationManager

要在序列化期間使用的序列化管理員。

statements
CodeStatementCollection

要新增序列化事件陳述式的陳述式集合。

value
Object

要序列化其事件的物件。

filter
Attribute[]

要套用至事件搜尋的成員屬性篩選。

適用於