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 方法。

方法 SerializeEvents 将 放在 InheritanceAttributevalueContextStack

适用于

另请参阅