共用方式為


CodeDomSerializerBase.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, params Attribute[] filter);
protected void SerializeEvents (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeStatementCollection statements, object value, params 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, ParamArray filter As Attribute())

參數

statements
CodeStatementCollection

將於其中進行序列化的 CodeStatementCollection

value
Object

將序列化其上事件的物件。

filter
Attribute[]

Attribute 陣列,可篩選要進行序列化的事件。

例外狀況

managervaluestatementsnull

備註

方法 SerializeEvents 是衍生類別可以呼叫的協助程式方法。 它會查看符合 filter 參數的參數value事件,然後它會針對每個事件呼叫 SerializeEvent 方法。

方法會將 SerializeEventsInheritanceAttributevalue 放在上 ContextStack

適用於

另請參閱