संपादित करें

इसके माध्यम से साझा किया गया


CodeDomSerializerBase.SerializeEvents Method

Definition

Serializes the specified events into the given statement collection.

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())

Parameters

manager
IDesignerSerializationManager

The IDesignerSerializationManager to use for serialization.

statements
CodeStatementCollection

The CodeStatementCollection into which the event will be serialized.

value
Object

The object on which events will be serialized.

filter
Attribute[]

An Attribute array that filters which events will be serialized.

Exceptions

manager, value, or statements is null.

Remarks

The SerializeEvents method is a helper method that derived classes can call. It looks at events on the value parameter that match the filter parameter, and then it calls the SerializeEvent method for each event.

The SerializeEvents method places the InheritanceAttribute for value on the ContextStack.

Applies to

See also