Serializes the given event into the given statement collection.
Assembly: System.Design (in System.Design.dll)
protected void SerializeEvent( IDesignerSerializationManager manager, CodeStatementCollection statements, Object value, EventDescriptor descriptor )
- Type: System.ComponentModel.Design.Serialization.IDesignerSerializationManager
The IDesignerSerializationManager to use for serialization.
- Type: System.CodeDom.CodeStatementCollection
The CodeStatementCollection into which the event will be serialized.
- Type: System.Object
The object to which descriptor is bound.
The method is a helper method that derived classes can call to serialize a single event into the given CodeStatementCollection. queries the serialization manager for a MemberCodeDomSerializer for the given event, and then asks the MemberCodeDomSerializer to serialize it.
places the statements and descriptor parameters on the ContextStack.
requires an IEventBindingService to discover event bindings to methods that are not compiled. If this service is not present, event bindings to non-compiled methods will not be written. Event bindings to compiled methods will still be serialized if the objects to which the events are bound can be converted into expressions.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.