CodeDomSerializerBase::SerializeEvents Method (IDesignerSerializationManager^, CodeStatementCollection^, Object^, array<Attribute^>^)

 

Serializes the specified events into the given statement collection.

Namespace:   System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)

protected:
void SerializeEvents(
	IDesignerSerializationManager^ manager,
	CodeStatementCollection^ statements,
	Object^ value,
	... array<Attribute^>^ filter
)

Parameters

manager
Type: System.ComponentModel.Design.Serialization::IDesignerSerializationManager^

The IDesignerSerializationManager to use for serialization.

statements
Type: System.CodeDom::CodeStatementCollection^

The CodeStatementCollection into which the event will be serialized.

value
Type: System::Object^

The object on which events will be serialized.

filter
Type: array<System::Attribute^>^

An Attribute array that filters which events will be serialized.

Exception Condition
ArgumentNullException

manager, value, or statements is null.

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.

.NET Framework
Available since 2.0
Return to top
Show: